Fixed getColor description in README

The README erroneously stated that getColor would return a js object with 'r', 'g' and 'b' members, instead it returns an array just like getPalette.
This commit is contained in:
iBobo
2015-08-17 12:36:21 +02:00
parent 050157dc19
commit b0bde62d91

View File

@@ -15,7 +15,7 @@ colorThief.getColor(sourceImage);
```js
getColor(sourceImage[, quality])
returns {r: num, g: num, b: num}
returns [num, num, num]
```
###Build a color palette from an image