jasonm23 / autothemer

Conveniently create Emacs themes - watch Autothemer used by System Crafters https://www.youtube.com/watch?v=kCCIudu53Zg
GNU General Public License v3.0
124 stars 11 forks source link

Use a better measure of 'color distance'? #5

Closed sebastiansturm closed 3 years ago

sebastiansturm commented 7 years ago

autothemer currently uses RGB differences as a measure of color similarity, but there are probably perceptual color measures out there that yield better / more intuitive results

jasonm23 commented 7 years ago

LAB/CIE color is a better model for perceptual color modelling.

https://en.wikipedia.org/wiki/Lab_color_space#Advantages

jasonm23 commented 7 years ago

HCL is slightly easier to work with than LAB/CIE and offers a useful way to work with color distance.

sebastiansturm commented 7 years ago

could you please check if the lab-color branch works for you? If so, I'll merge the updated readme afterwards, thanks!

jasonm23 commented 7 years ago

Looks good to me 👍

jasonm23 commented 3 years ago

This can be closed now?

sebastiansturm commented 3 years ago

sure, thanks for the wake-up call :)

jasonm23 commented 3 years ago

Thank you 👍