by dfbrown · 7y ago · 0 comments
Edit: Looking at the code more closely it looks like you were using Lab at one point but commented it out[3], so I'm guessing you're already aware of this.
1: https://stackoverflow.com/a/9019461/185171
2: https://en.wikipedia.org/wiki/CIELAB_color_space#CIELAB
3: https://github.com/worldveil/photomosaic/blob/bb720efda11383...
But you’re correct, generally that’s the space you want to be in.
I've done some similar work[1], but issue with L*ab color is it's terrifically slow to calculate diff, at least in JS.
L*b was very slow, yes. It’s all done offline but I tend to like quicker feedback...