POV-Ray : Newsgroups : povray.general : Random values from color_map : Re: Random values from color_map Server Time
2 Nov 2024 13:18:57 EDT (-0400)
  Re: Random values from color_map  
From: ABX
Date: 20 Feb 2004 04:57:42
Message: <6emb30hs6vvt4nie9t12dulvka61dno4o4@4ax.com>
On Fri, 20 Feb 2004 02:47:52 -0600, "Skip Talbot" <sta### [at] uiucedu> wrote:
> If I define a color_map, how can I have POV pull random color vectors from
> it?  I'm tinkering with functions but I'm hitting dead ends or just don't
> have the syntax.

Something like :

#local Gen=function{pigment{gradient x colour_map{...}}};
#local Seed=seed(...);
#local Val=Gen(rand(Seed),0,0);

?

ABX


Post a reply to this message

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