calculate a colour gradient

Max M maxm at mxm.dk
Fri Jun 18 00:35:58 CEST 2004


Paul McGuire wrote:

> What about:
> scale R from 255 to 0
> scale B from 0 to 255 (or compute as 255-R)
> hold G constant (try values like 0, 64, and 128 to brighten or darken the
> resulting reds and blues)

Or just use the websafe colors:

http://www.lynda.com/hexpalette/images/nhue2.gif


They basically us any combination of R,G,B with the values 00,11,22... 
to ...DD,EE,FF

Easy to calculate and figure out.

regards Max M



More information about the Python-list mailing list