Original Post
i have a number N between 0.0 (red) and 1.0 (violet). the values inbetween represent a linear transition through the frequencies and colours of visible light (eg 0.5 is green)
i have an rgb vector where each component ranges from 0.0 to 1.0
given N, what are the values of r, g and b?
as a trivial curious sidenote : suppose there is an altered spectrum measurement where infa-red is red but tending to transparent black and ultra-violet is violet but tending to transparent black. perhaps (i''m not sure if this is true) the rainbow is more densely packed towards the middle (ie the distance between yellow and green is smaller than the distance between red and orange). this is the rainbow that appears to be reflected of certain surfaces (at the moment i get a great one on my minidisk display
). obviously the colour depends on the reflection angle, so is there a way to calculate the colour at any point given a light vector, normal and eye position?
********
A Problem Worthy of Attack
Proves It''s Worth by Fighting Back