colorlover
colorlover copied to clipboard
Better interpolation procedure based on perceptual uniform colorspace…
… L*a*b*
I created a way to make the color interpolation perfectly smooth. The procedure demands converting to a perceptually uniform colorspace (in the case L*a*b*) and making the interpolation there. My code uses numpy, but I kept the legacy interpolation code as a fallback in the case the user cannot import it. There's a notebook with the explanation of the code step by step here: https://github.com/dreavjr/colorinterp
Wow, this is a very humbling and nice addition. Thanks for contributing! Your 📓 s great too:
https://github.com/dreavjr/colorinterp/blob/master/Perceptual%20Uniform%20Color%20Interpolation.ipynb
Would you mind if I rename new_interp()
as lab_interp()
, and keep old_interp()
named as interp()
? My concern is folk's code will break if they update to a new version of colorlover, and have a bunch of cl.interp()
's floating around. Excited to steer folks towards lab_interp()
going forward 👍
Thank you very much for accepting my contribution, please feel completely free to adapt it as you think it suits better the existing userbase.