Skip to content

Commit

Permalink
more readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh committed Nov 3, 2011
1 parent 13a6adf commit d3f5fbb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.markdown
Expand Up @@ -11,14 +11,18 @@ A script for grabbing the dominant color or a representative color palette from

###Usage

####getDominantColor(sourceImage)
```js
getDominantColor(sourceImage)
returns {r: num, g: num, b: num}
```

Use the median cut algorithm provided by quantize.js to cluster similar
colors and return the base color from the largest cluster.

####createPalette(sourceImage, colorCount)
```js
createPalette(sourceImage, colorCount)
returns array[ {r: num, g: num, b: num}, {r: num, g: num, b: num}, ...]
```

Use the median cut algorithm provided by quantize.js to cluster similar
colors.
Expand Down

0 comments on commit d3f5fbb

Please sign in to comment.