mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 22:04:25 +00:00
Updated read me
This commit is contained in:
@@ -17,7 +17,10 @@ getColor(sourceImage[, quality])
|
|||||||
returns {r: num, g: num, b: num}
|
returns {r: num, g: num, b: num}
|
||||||
```
|
```
|
||||||
|
|
||||||
###Build a 8 color palette from an image
|
###Build a color palette from an image
|
||||||
|
|
||||||
|
In this example, we build an 8 color palette.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var colorThief = new ColorThief();
|
var colorThief = new ColorThief();
|
||||||
colorThief.getPalette(sourceImage, 8);
|
colorThief.getPalette(sourceImage, 8);
|
||||||
|
|||||||
Reference in New Issue
Block a user