POV-Ray : Newsgroups : povray.general : function question : Re: function question Server Time
6 Aug 2024 16:59:59 EDT (-0400)
  Re: function question  
From:
Date: 3 Apr 2002 18:36:45
Message: <9e4nau079sb1fsbc4ui4gbnnnr7mfc659m@4ax.com>
On Wed, 3 Apr 2002 17:00:25 -0600, "Shay" <sah### [at] simcopartscom> wrote:
> I understand why you are scaling the results to an appropriate range for the
> color map, but is it really necessary.

'6.7.1.3  Color Maps' second paragraph

ABX
--
disc{z,-z#macro O()asc(substr("-+((1*(,1,/.-,*/(,&.323/'1"e,1))*.1-4#declare
e=e-1;#end#local e=26;5pigment{#local g=function(_){ceil(_)-_}function#local
k=function{pattern{object{sphere_sweep{linear_spline 13#while(e)<O(),O()//35
>.01#end}}}}{k(g(atan2(x,y)),g(ln((y+x)^2+1e-5)),0)}}finish{ambient 1}}//ABX


Post a reply to this message

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