Advertisement Jump to content
Sign in to follow this  
fathom88

Question On RBG # Conversion

This topic is 4967 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 looking for a formual to convert a single value to an RGB value. I've found several on converting a RGB value to a single value (most have to do with color to gray scale conversion). I'm trying to map single values to the color spectrum. Hence, zero would equal white (255, 255, 255). Does a formula exist? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Are you looking for something like a light frequency to RGB map? I don't know of any purely algebraical formulas off the top of my head. Maybe some form of interpolated lookup table?

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!