POV-Ray : Newsgroups : povray.general : Macro assist? : Re: Macro assist? Server Time
5 Aug 2024 18:26:18 EDT (-0400)
  Re: Macro assist?  
From: ABX
Date: 12 Aug 2002 03:51:30
Message: <eppelu09kja01hgcgq9uha0crolk5c90d1@4ax.com>
On Mon, 12 Aug 2002 03:36:10 -0400, "Timothy R. Cook"
<tim### [at] scifi-fantasycom> wrote:

> randomize timer

#declare Seed=seed(SeedNr);

> for n=1 to 23

#declare N=1;
#while(N<=23)

>     theta%=(rnd*36)*20

#declare Theta=rand(Seed)*36*20;

>     r = rnd*0.24

#declare R=rand(Seed)*24;

>     x = r*COS(theta%)

#declare X=R*cos(Theta);

>     y = r*SIN(theta%)

#declare Y=R*sin(Theta);

>     z = (rnd*0.5)+1.25

#declare Z=rand(Seed)*0.5+1.25;

>     ? USING "X = +#.#####  Y = +#.#####  Z = +#.#####";x,y,z

#debug concat(
         "  X = ",str(X,0,-1),
         "  Y = ",str(Y,0,-1),
         "  Z = ",str(Z,0,-1),
       "\n")

> next n

#declare N=N+1;
#end

Is it readable and sufficient or do you need some addition ?

ABX


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.