Skip to content

v0.2.0 - improved getPalette

Latest
Compare
Choose a tag to compare
@jwagner jwagner released this 19 Sep 13:10
· 8 commits to main since this release
a4fe327

Improved the getPalette algorithm by introducing a pre and post processing step.
The preprocessing gets rid of the random initialization for more consistent results.
Because k-means tends to return clusters of similar size the post processing
merges similar colors to provide a more varied palette.