HSL and undefined hue
I've been playing around with some code that converts between HSL and RGB that uses -400 as the value for undefined hue, for example, with grayscale shades. This raised the question for me if there was a technical reason for that value or if it was an agreed upon convention or if the original coder just picked it because it was negative and far from 360. Can anyone shed some light on this for me?
[Edited by - LessBread on October 4, 2006 3:10:47 PM]
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
It is just an arbitrary number. Any number that is not in the range of 0 to 360 would work.
laziness is the foundation of efficiency | www.AdrianWalker.info | Adventures in Game Production | @zer0wolf - Twitter
Ok. Thanks. That reminds me of something I forgot to do over the weekend...
This, HSL color space, says "H = 0 is often used instead of leaving H undefined."
[Edited by - LessBread on October 4, 2006 3:50:23 PM]
This, HSL color space, says "H = 0 is often used instead of leaving H undefined."
[Edited by - LessBread on October 4, 2006 3:50:23 PM]
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement