Hacker News new | ask | show | jobs
by rabidsnail 3655 days ago
Also if you don't know what your target palette is you can do k-means clustering over colorspace, and the palette is the cluster centers (each point you're giving to k-means is an <r,g,b> or <h,s,v> vector).
1 comments

K-medians or k-medoids yield more pleasing results in my experience