How to convert wavelength to RGB?

Asked

Viewed 443 times

1

Does anyone know an algorithm that converts a wavelength to RGB?

  • 3

    This may help: http://stackoverflow.com/questions/1472514/convert-light-frequency-to-rgb

  • Thank you @Cantoni!

  • Generic suggestion, just for the record: convert the wavelength to the "Hue" of the HSV system, and then convert HSV to RGB. Remembering that RGB shows numerous impure colors, while a wavelength is a pure color, then such colors would have S=1.0 and V=0.5 in the HSV system. Still with this system I think there might be some problem with violets,

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.