The Conroy & Conroy Subroutine Library (2021.3 edition)

Wavelength_To_RGB
What: function
File: RGB
Layer: 1
Platforms: C, C++, C#, Javascript, Pascal (Object), PHP, Python
C++ Format: void Wavelength_To_RGB( int W, TWide_RGB &RGB )
Pascal Format: procedure Wavelength_To_RGB( W : integer ; var RGB : TWide_RGB )

This function converts a wavelength (in Angstroms) into an RGB value that represents what that wavelength would look like to the human eye.