colorlover icon indicating copy to clipboard operation
colorlover copied to clipboard

Better interpolation procedure based on perceptual uniform colorspace…

Open dreavjr opened this issue 7 years ago • 2 comments

… 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

dreavjr avatar May 27 '17 22:05 dreavjr

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 👍

jackparmer avatar Jun 09 '17 00:06 jackparmer

Thank you very much for accepting my contribution, please feel completely free to adapt it as you think it suits better the existing userbase.

dreavjr avatar Jun 15 '17 02:06 dreavjr