Skip to content

Commit

Permalink
Add another screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderlewis committed Oct 1, 2017
1 parent 91c968d commit 43dcaa3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
### Just supply an image, and get a custom set of colours generated from the colours in the image.

![](screenshots/screenshot1.png)
![](screenshots/screenshot2.png)

Currently, *colour-palettes* uses a simple k-means clustering algorithm and calculates the mean colour of each cluster in order to produce a palette. This may change in the future as I tweak the algorithm and possibly introduce additional user controls.
2 changes: 1 addition & 1 deletion public/clustering.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function kMeans(data, k) {

// Check for empty clusters. If so, just retry!
if (clusters.some(x => x.length == 0)) {
console.log('Empty clusters found. Restarting k-means.');
//console.log('Empty clusters found. Restarting k-means.');
return kMeans(data, k);
}

Expand Down
Binary file added screenshots/screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 43dcaa3

Please sign in to comment.