So, I\'m working on a fresh iteration of a web app. And, we\'ve found that our users are obsessed with being lazy. Really lazy. In fact, the more wor
You can take a look at:
https://github.com/dcollien/Dreamcoat
which does this in CoffeeScript (literate coffee, so it's well documented)
Demo here: http://dcollien.github.io/Dreamcoat/test.html
It has both a colour quantization approach, and a KMeans approach which are combined.