POV-Ray : Newsgroups : povray.general : a function : Re: a function Server Time
6 Aug 2024 04:17:16 EDT (-0400)
  Re: a function  
From: ingo
Date: 26 May 2002 03:47:46
Message: <Xns921A642B04E46seed7@povray.org>
in news:3cf01d6a$1@news.povray.org Dennis Miller wrote:

> That's very handy. How would you add some color to that?
> D.

>>   pigment {
>>     function {E*sin(A*sin(I*x) + B*cos(J*y))
>>               + F*cos(C*cos(K*x) + D*sin(L*y))}

       color_map {
         [0, rgb <1,0,1>]
         [0.5, rgb <0,1,0>]
         [1, rgb <0,0,1>]
       }

>>     //sine_wave
>>   }

Ingo


Post a reply to this message

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