News for hackers. Stuff that matters.
Re:Color Thief, script for grabbing the color palette from a... by Mavyrk on Saturday January 07, 2012 @03:12PM (#3437956)
It would be interesting to see if you could use a system like this to automagically derive background colors for image display, picking muted complimentary colors to make the dominant color in an image "pop", so to speak.
Re:Color Thief, script for grabbing the color palette from a... by aaronblohowiak on Saturday January 07, 2012 @03:15PM (#3437963)
You can do this by representing the colors into HSV and then modifying the hue by 180%, desaturating them and then adjusting the brightness (v). Most color libraries will let you deal in RGB(A) or HSV so this is pretty straightforward to DIY.