|
![](/i/fill.gif) |
Ron Parker <ron### [at] povray org> wrote:
: #debug wants string arguments.
I still think #debug (and other streams) should be more user-friendly,
as printing functions in other scripting languages, so that you could
write something like:
#declare F1 = 5;
#declare F2 = 3.86;
#declare V = <1,2.8,-3>;
#declare S = "Hello!"
#debug "Some values: ", F1, "; ", F2, "; ", V, "; ", S, "\n"
This would print:
5; 3.86; <1,2.8,-3>; Hello!
With the current implementation you have to do this:
#debug concat("Some values: ", str(F1,0,0), "; ", str(F2,0,2), "; <",
str(V.x,0,0), ",", str(V.y,0,1), ",", str(V.z,0,0), ">; ",
S, "\n")
--
#local D=array[6]{11117333955,7382340,3358,3900569407,970,4254934330}
#local I=0;#macro M()<mod(D[I],13)-6,mod(div(D[I],13),8)-3,10>#end
blob{#while(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2
pigment{rgb M()}}#local I=(D[I]>99?I:I+1);#end} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |