|
![](/i/fill.gif) |
mr.art <mr.### [at] gci net> wrote:
> I just ran into something strange. While trying to
> pass a color vector through a macro, the color changed!
> The code is simple
[snip]
> If I #declare CapColor= a three or four component vector, it works
fine.
> But as a five component vector something doesn't work so well.
> Can anyone give some insight on this?
I think that second-last sentence is the clue: you don't actually want a
5-component vector, you want a colour. Therefore, if you declare your
CapColor as a colour variable, eg: #declare CapColor = rgbft <1, 0, 0,
0, 0>; you should find that everything works as expected.
Post a reply to this message
|
![](/i/fill.gif) |