Uhm ..... that algorythm ..... can just take input from a text field, or also from a video device ? (camera or linear sensor, as example)
I know my ideas are usually crazy, but ..... you know ? :eg: the first thing that come me in mind, hearing "wavelenght/RGB conversion" words, is the opposite ..... that turns in "cheap PC spectrophotometer"

..... so, if that can be turned in a standalone PC application .....
I mean, i can imagine easily a phisical setup for hook a slit, a serie of lenses and mirrors, a diffraction device (prism or grating, don't count, they have different optical characteristics that must be corrected in the program or with the inclination of the CCD, anyway), to a webcam USB-based CCD or CMOS video device (or, also better, to a linear CCD device, that have more reading elements and more large reading field), instead to use them as a simple monochromator ..... all the hardware part is relatively easy to build, after all.
But, at this point, i need a software that can acquire the image from the cam (no matter the speed, it can also just be one frame per second

), or acquire the data stream from the linear CCD sensor, if this is used, get the different intensities from the reading zone of the image, apply the correction curve (a compensation curve that is the exact opposite of the sensitivity curve of the CCD or CMOS sensor used, so this make the output reading curve a "flat response" curve for all the wavelenghts), measure the intensity curve and display it ..... and in programming field, my "skill" suck a little bit.
Anyway, i'm asking cause a similar setup can be done, basically in 2 different ways ..... or using a diffraction setup with a linear sensor, that gives you a spectrm reading based on the different intensities of a line (precise, but require a decent potomechanical setup) ..... or a CCD / CMOS sensor, where the light can be directly read as RGBI data, and converted from a specific software (much less precise, but also much more cheap, and this setup can also be used for a beam profiler)