POV-Ray : Newsgroups : povray.general : for loops : Re: for loops Server Time
5 Aug 2024 14:18:04 EDT (-0400)
  Re: for loops  
From: Kevin Loney
Date: 10 Sep 2002 17:57:34
Message: <3d7e6ace@news.povray.org>
try this

#declare x = 0;
#while(x<10)
    sphere {
        <x, 0, 0>, .5
        texture {
            pigment { color Red }
        }
    }
    #declare x=x+1;
#end

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg",r,1))-97;
disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4pigment{rgb 10}}_(r+1)
#end#end _(1)//KL


Post a reply to this message

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