|
|
"Kenneth" <kdw### [at] gmailcom> wrote:
> The *idea* is to get a continuous spectrum of colors, from red to green to
> blue-- and those index-list values certainly don't do that. The index should be
> divided into THREE equal segments.
Well, I'd suggest using the HSV color conversion macro in colors.inc, and
calculate the rgb values that way. Not sure if that will give you exactly what
you want, but plugging in 0, 120, and 240 for hue angle values might just do it.
I think this ought to get you real close to what you want:
(untested - writing this in as close to the proper syntax as I can)
#declare Color1 = HSV2RGB ( 0, 1, 1, 0, 0)
#declare Color2 = HSV2RGB (120, 1, 1, 0, 0)
#declare Color3 = HSV2RGB (240, 1, 1, 0, 0)
....
[(0/3) rgb Color1]
[(1/3) rgb Color2]
[(2/3) rgb Color3]
[(3/3) rgb Color1]
Post a reply to this message
|
|