POV-Ray : Newsgroups : povray.general : request for pigment help : Re: request for pigment help Server Time
30 Jul 2024 16:20:43 EDT (-0400)
  Re: request for pigment help  
From: Chris B
Date: 26 Oct 2008 16:52:08
Message: <4904d878$1@news.povray.org>
"Leef_me" <nomail@nomail> wrote in message 
news:web.4904bd7445e043c998cd18890@news.povray.org...
>
> I want to apply a color map to a torus so that the maps are applied as 
> wedges
> when viewing a cross-section of the torus.
> (I think this would be radially, but I am unsure.)
>
> Can some give me a simple example of this?
>
> Thanks in advance.
>
> Leef_me


Do you mean something like:

camera {location <0,2,-4> look_at 0}
light_source {<-1,50,10>, rgb 0.4}

torus { 1, 0.1
  pigment {
    radial
    color_map {
      [0.0  color rgb <1,0,0>]
      [0.3  color rgb <1,0,0>]
      [0.3  color rgb <0,1,0>]
      [0.6  color rgb <0,1,0>]
      [0.6  color rgb <0,0,1>]
      [1.0  color rgb <0,0,1>]
    }
  }
}


Post a reply to this message

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