News for hackers. Stuff that matters.
Re:HSLuv, a developer friendly perceptual color space by boulos on Monday March 09, 2020 @05:16PM (#22529901)
Interesting! I hadn't heard of HSLuv. The original writeup / blog post [1] seems more informative though on "why" (hsluv.org is not a very interesting landing page).

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...

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.
Re:HSLuv, a developer friendly perceptual color space by jake-low on Monday March 09, 2020 @09:07PM (#22531739)
This is a great paper! Thank you for sharing it. I'm not an expert by any means in color theory, but I found the paper both accessible (great diagrams!) and compelling.