POV-Ray : Newsgroups : povray.general : Question : Re: Question Server Time
16 Nov 2024 03:25:49 EST (-0500)
  Re: Question  
From: Matthew Bennett
Date: 21 Oct 1998 17:01:33
Message: <362e3d9d.0@news.povray.org>
Try this...

Replace:
>         #if(Count <= 18)
>              color < (1-.027*(2*Count)), 0, ((2*Count)*.027)>
>         #else
>              color < abs(1-((2*Count)*.027)), 0, ((Count)*.027) >

With:
          #if(Count <= 18)
                color <1-(0.0556*Count), 0, 0.0556*Count>
          #else
                color <0.0556*(Count-18), 0, 1-(0.0556*(Count-18))>


To get things more accurate, you could also try replacing the "0.0556" with
"(1/18)".
Hope that helps,

Matt


Post a reply to this message

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