On 7 Jan 2002 09:00:15 -0500, Warp wrote:
>: #macro Test2() #if(yes) 2 #end #end
>: #local F=Test2();
>
> Isn't the "right way" of returning values from a macro something like:
>
> #macro Test2() #if(yes) #local res=2; #end res #end
Except for that minor detail of it causing crashes when you return a local.
--
#local R=rgb 99;#local P=R-R;#local F=pigment{gradient x}box{0,1pigment{gradient
y pigment_map{[.5F pigment_map{[.3R][.3F color_map{[.15red 99][.15P]}rotate z*45
translate x]}]#local H=pigment{gradient y color_map{[.5P][.5R]}scale 1/3}[.5F
pigment_map{[.3R][.3H][.7H][.7R]}]}}}camera{location.5-3*z}//only my opinions
Post a reply to this message
|