POV-Ray : Newsgroups : povray.general : Re: Color functions? : Re: Color functions? Server Time
19 Nov 2024 13:29:52 EST (-0500)
  Re: Color functions?  
From:
Date: 28 Feb 2002 09:34:01
Message: <gkfs7ugsvm3uannr2c91ki9trmifnnr7l0@4ax.com>

wrote:
>On Thu, 28 Feb 2002 15:24:33 +0100, "Hugo" <hua### [at] post3teledk> wrote:
>> I'd like to have a color function,
>> and the docs somehow says ...
>
> try to ask in newusers, advenced-users or general group in the future
> followup-to general one

and here I can answer you:

#local f_pig=function{pigment{agate}}
#local f_red=function{f_pig(x,y,z).red}
#local f_green=function{f_pig(x,y,z).green}
#local f_blue=function{f_pig(x,y,z).blue}
#local Pig=pigment{
average
pigment_map{
[1 function{f_red(x,y,z)} color_map{[0 red 0][1 red 3]}]
[1 function{f_green(x,y,z)} color_map{[0 green 0][1 green 3]}]
[1 function{f_blue(x,y,z)} color_map{[0 blue 0][1 blue 3]}]
}
}

ABX


Post a reply to this message

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