Notes on spectrometry for the spectrometer tool:

 

Color algorithms to automatically recognize wavelengths:

http://stackoverflow.com/questions/1678457/best-algorithm-for-matching-colours/1678498

http://stackoverflow.com/questions/1720528/what-is-the-best-argorithm-for-finding-the-closest-color-in-an-array-to-another-c

http://www.velocityreviews.com/forums/t430790-rgb-wavelength-intensity.html

http://codingmess.blogspot.com/2009/05/conversion-of-wavelength-in-nanometers.html