POV-Ray : Newsgroups : povray.general : Random values from color_map Server Time
7 Nov 2024 00:21:14 EST (-0500)
  Random values from color_map (Message 1 to 3 of 3)  
From: Skip Talbot
Subject: Random values from color_map
Date: 20 Feb 2004 03:47:47
Message: <4035c9b3@news.povray.org>
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.

Skip


Post a reply to this message

From: ABX
Subject: Re: Random values from color_map
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

From: Skip Talbot
Subject: Re: Random values from color_map
Date: 20 Feb 2004 13:16:07
Message: <40364ee7$1@news.povray.org>
Brilliant!  Thank you, sir.

Skip


Post a reply to this message

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