Algorithm challenge: Generate color scheme from an image

前端 未结 11 1793
猫巷女王i
猫巷女王i 2020-12-02 05:02

Background

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

11条回答
  •  情书的邮戳
    2020-12-02 05:13

    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.

提交回复
热议问题