|
|
Jose Garcia wrote:
> ~
> does Povray support for loops , if so, then how?
the only loop structure is while-loops. but as you maybe know you can
simulate for-loops with while
#declare i = 0;
#while (i<=10);
> sphere {
>
> <i, 0, 0>, .5 // I wanted to draw 10 spheres,
> with x starting at 0, going to 10
> texture {
> pigment { color Red }
> }
> }
> }
#declare i = i + 1;
#end
- Micha
--
objects.povworld.org - The POV-Ray Objects Collection
book.povworld.org - The POV-Ray Book Project
Post a reply to this message
|
|