Re:HSLuv, a developer friendly perceptual color space
by tommysavaria on Tuesday March 10, 2020 @11:39AM
(#22536354)
I was curious to see how oRGB worked in practice so I made some code to test this, and uploaded to a JS fiddle: https://jsfiddle.net/phv7x39q/1/
It is a very naive implementation, more work could be put in optimizing it.
Once I got around to fiddling with it I understood what the paper explained. I'm not new to colorspaces or matrix transformations but it is hard sometimes to grasp the concept from the paper.
Re:HSLuv, a developer friendly perceptual color space
by jes5199 on Wednesday March 18, 2020 @02:49AM
(#22614254)
I think you have a bug - the rotation is supposed to be in the opposite direction if the red-green value is below zero. The paper doesn't make that very clear.
Re:HSLuv, a developer friendly perceptual color space
by patrec on Tuesday March 10, 2020 @12:45PM
(#22537039)
Out of curiosity: when you go full throttle on red yellow, dark <-> light goes from red to orange to yellow. Is that really as it is meant to be? I'd (intuitively) expect to be able to go from orange to brown by adjusting the dark/light dimension.
I'm a little sad (disclosure: co-author) that we didn't make oRGB [2] more popular. Perhaps we should put some source code online?
[1] https://www.boronine.com/2012/03/26/Color-Spaces-for-Human-B...
[2] https://www.cs.utah.edu/~bratkova/research/projects/orgb/org...