POV-Ray : Newsgroups : povray.general : cells pattern Server Time
4 Aug 2024 10:20:31 EDT (-0400)
  cells pattern (Message 1 to 2 of 2)  
From: Jos Tellings
Subject: cells pattern
Date: 16 Jun 2003 13:10:45
Message: <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!


Post a reply to this message

From: Ross Litscher
Subject: Re: cells pattern
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.