Let's see.
You want to measure the absorbance at a range of wavelengths and output your result as a colour in rgb format.
Why not just take a photo?
There are good reasons for not doing this.
1. Converting your spectrum data to a single rgb value involves a considerable loss of information.
2. The full spectrum lends itself to analysis and comparison that a single pixel doesn't.
Really, what are you actually trying to achieve? |