POV-Ray : Newsgroups : povray.macintosh : While bug? or am I missing somthing? : Re: While bug? or am I missing somthing? Server Time
3 Jul 2024 08:18:03 EDT (-0400)
  Re: While bug? or am I missing somthing?  
From: Chris Huff
Date: 29 Mar 2000 18:18:43
Message: <chrishuff_99-07133A.18210029032000@news.povray.org>
In article <B507C9ED.343%dav### [at] maccom>, David 
<dav### [at] maccom> wrote:

> OK here you go:
> 
> #include "colors.inc"
> 
> camera{ location <0,2,-6> look_at 0 }
> light_source{ <40,40,-30>,color White }
> #declare i = 1;
> #while( i <= 2 )
>     sphere{ (x*i)-2, .5  pigment{color Red} }
>     #declare i = i + 1
> #end

Well, you missed a semicolon on the incrementing #declare, but that code 
worked fine under both 3.1g.r2 and MacMegaPOV 0.4 even without the 
semicolon. What version are you using?

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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