Algorithm challenge: Generate color scheme from an image

前端 未结 11 1737
猫巷女王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:23

    Average the hue, saturation and brightness separately while keeping the min/max values.

    Lock the target hue of all the colours to the average and interpolate the saturation and brightness for the x points between the boundaries. This should return a scheme with a colour cast the same as the foto but with a simple variation. Maybe you'll even get the Apple look.

    Just hope you don't get 3 shades of dog puke.

提交回复
热议问题