POV-Ray : Newsgroups : povray.general : cells pattern : Re: cells pattern Server Time
4 Aug 2024 08:20:41 EDT (-0400)
  Re: cells pattern  
From: Ross Litscher
Date: 16 Jun 2003 13:29:24
Message: <3eedfe74$1@news.povray.org>
Jos Tellings <jte### [at] chellonl> wrote in message
news:oprqvdz9kopkmer3@localhost...
> Hi,
>
> I want to use the cells-pattern. If i do simply :
>
> pigment { cells }
>
> i get different colors gray, but i want different colors red for example
>
> how can i do that?
>
> thank you Very Much!


what you are interested in using is color_map. something like this should
get you started.

plane {
  <0, 1, 0>, 0
  pigment {
    cells
    color_map {
      [0.0 rgb <1, 0, 0> ]
      [1.0 rgb <0, 0 ,0> ]
    }
  }
}

good luck!
ross


Post a reply to this message

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