POV-Ray : Newsgroups : povray.newusers : Color encoding of a linear_spline due to z-axis value : Re: Color encoding of a linear_spline due to z-axis value Server Time
29 Jul 2024 08:14:01 EDT (-0400)
  Re: Color encoding of a linear_spline due to z-axis value  
From: wollinger
Date: 23 Apr 2006 15:20:01
Message: <web.444bd23353dc32ba431eceef0@news.povray.org>
Hi,

that was the hint into the right direction! I've added a translate
<0,1450,0> to shift it to y_min.

Thanks a lot
Wolfgang

"Mr Seb" <ban### [at] wanadoofr> wrote:
> Try this :
> #declare pig=pigment {gradient y color_map{
>  [0 Black]
>  [1 Red]
>  }
>  scale 300
>  }
>
> (the 300 is approximative, this is the max_y in your example)
>
> and replace pigment {Red} by pigment {pig} in your scene
> "


Post a reply to this message

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