|
|
No, don't actually try that!! x is a pre-defined vector
( <1,0,0> ) and re-defining it would be "a bad thing"...
Here's a variation (just to play around with vectors!):
#declare myvec = x;
#declare endvec = x*10;
#while (myvec <= endvec)
sphere
{
myvec, .5 texture{ pigment { color rgb myvec/10 } }
}
#declare myvec = myvec + x;
#end
'because I can'...
Emory
Kevin Loney wrote:
>
> try this
>
> #declare x = 0;
> #while(x<10)
> sphere {
> <x, 0, 0>, .5
> texture {
> pigment { color Red }
> }
> }
> #declare x=x+1;
> #end
>
> --
> Kevin
> http://www.geocities.com/qsquared_1999/
> #macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg",r,1))-97;
> disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4pigment{rgb 10}}_(r+1)
> #end#end _(1)//KL
Post a reply to this message
|
|