POV-Ray : Newsgroups : povray.general : Color Passing in #macro : Re: Color Passing in #macro Server Time
10 Aug 2024 23:25:00 EDT (-0400)
  Re: Color Passing in #macro  
From: Chris Colefax
Date: 26 Nov 1999 20:41:51
Message: <383f36df@news.povray.org>
mr.art <mr.### [at] gcinet> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.