Difference between revisions of "Wavelength to RGB in Python"
From Noah.org
Jump to navigationJump to search (Created page with 'Category:Engineering Category:Python Category:Free_Software == Wavelength to RGB in Python == This class converts a given wavelength in nanometers to a 24-bit R,G,B…') |
|||
Line 9: | Line 9: | ||
The input wavelength range is 380 nm through 750 nm (red through violet). | The input wavelength range is 380 nm through 750 nm (red through violet). | ||
− | For testing see [[ | + | For testing see [[PNG_canvas_in_Python]]. |
[[Image:spectrum.png|spectrum -- 380 nm through 750 nm]] | [[Image:spectrum.png|spectrum -- 380 nm through 750 nm]] |
Revision as of 20:02, 24 January 2013
Wavelength to RGB in Python
This class converts a given wavelength in nanometers to a 24-bit R,G,B value. This is obviously a very approximate conversion and will not appear the same on every display device.
The input wavelength range is 380 nm through 750 nm (red through violet).
For testing see PNG_canvas_in_Python.