11-24-2007 08:22 AM
11-24-2007 08:34 AM - edited 11-24-2007 08:34 AM
It just sounds like you have to multiply "255" by your precentage (expressed as a fraction) and then combine the components.
This image show how to apply the same percentage to all three components of a "starting color" to produce a color ramp.
If that does not solve your challenge, post some code and we'll take a closer look.
Ben
11-24-2007 01:44 PM
11-24-2007 03:42 PM
11-24-2007 08:37 PM
11-25-2007 01:01 PM
11-26-2007 08:32 AM
Be very careful. The RGB color model works well with light sources, but not with paint (which is a light sink/reflector). This is why printers don't use red, green, and blue inks, but yellow, cyan, and magenta (or some variant thereof). Check out this wikipedia article for a decent overview of the CMYK color model.
11-26-2007 10:44 AM