Jump to content
  • Advertisement
Sign in to follow this  
LessBread

HSL and undefined hue

This topic is 4276 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!