|
![](/i/fill.gif) |
Trevor G Quayle <Tin### [at] hotmail com> wrote:
> > Why not 'pigment{rgb x}'?
> Even though this is valid, it gives me the creeps for some reason, x is x,
> red is red...
You are not a programmer then? ;)
I think of 'x' as '<1, 0, 0>', not as "the x axis". Since '<1, 0, 0>' is
a valid and normal color (in a similar way as eg "#FF0000" is a valid normal
color in html), then 'x' is one too.
This actually makes understanding things like "x+y" easier. You have
to think about that as "<1, 0, 0> + <0, 1, 0>", not as "the x axis plus
the y axis", which would be quite confusing.
> > > #macro a(b)#if(b<5)box{-1,1scale.5translate y-3pigment{color x}}#end#end
> >
> > That's not even the shortest way of doing that ;)
> Best I can do:
> #macro a(b)#if(b<5)box{y-3.5y-2.5pigment{rgb x}}#end#end
Much better. :P
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |