|
![](/i/fill.gif) |
> sphere{0 1 pigment{color rgb 0.2} translate<1,2,3>}
> sphere {1 1 pigment{color rgb 0.4} translate<1,2,3>}
> sphere {2 1 pigment{color rgb 0.6} translate<1,2,3>}
>
> becomes
>
> #macro M(c)pigment{color rgb c}translate<1,2,3>#end
> sphere{0 1 M(.2)}
> sphere{1 1 M(.4)}
> sphere{2 1 M(.6)}
>
> ;-)
> Paolo
>
>
yet better
#macro M(l,r,c)sphere{l r pigment{color rgb c}translate<1,2,3>}#end
this saves you two spheres :-)
Post a reply to this message
|
![](/i/fill.gif) |