math question
Posted: 10.09.2004, 20:18
OK Ive been trying to figure this out and Ive made it more difficult than it needs to be...Im trying to scale between two RGB values bepending on the value of say C
RGB1 = [ 0.85 0.62 0.72 ]
RGB2 = [ 0.63 0.44 0.90 ]
Now what I want to do is when scale value C = 255 then we reach RGB1 If its in the middle then we could average RGB1 and RGB2. When C = 0 then we reach RGB2...so how could I do this properly?
RGB1 = [ 0.85 0.62 0.72 ]
RGB2 = [ 0.63 0.44 0.90 ]
Now what I want to do is when scale value C = 255 then we reach RGB1 If its in the middle then we could average RGB1 and RGB2. When C = 0 then we reach RGB2...so how could I do this properly?