PDA

View Full Version : Changing colors from blue to red (%)


V@no.
05-27-2003, 09:21 AM
Hi!
not sure if this is the right forum...
What Im trying to do is find a formula with witch I could display graphic chart with solid color, but depence of the procent it shows (0 - 100) it would change color from specific blue to specific red.
for example, if I got 0% it would be blue, 25% would be still blue, but with some red tone, 50% would be between blue and red, 100% full red
I'm not quet sure what I should look for, that why I posted this question...:o
any help would be greately appreciated. thx!

RoyW
05-27-2003, 02:55 PM
A while back I created this thread
http://www.codingforums.com/showthread.php?s=&threadid=4656

In it is a function to take a "start color" an "end color" and a "percent" and will return the color between them.

Maybe that could be a start for you.

V@no.
05-27-2003, 10:59 PM
thx!