POV-Ray : Newsgroups : povray.pov4.discussion.general : palette RGB values instead of index : Re: palette RGB values instead of index Server Time
19 Apr 2024 15:03:07 EDT (-0400)
  Re: palette RGB values instead of index  
From: clipka
Date: 30 Aug 2012 21:16:16
Message: <50401060$1@news.povray.org>
Am 31.08.2012 00:20, schrieb Woody:

> For example instead of something like (as detailed at the above documentation
> location)
>
>   image_map {
>      gif "mypic.gif"
>      filter   0, 0.5 // Make color 0 50% filtered transparent
>      filter   5, 1.0 // Make color 5 100% filtered transparent
>      transmit 8, 0.3 // Make color 8 30% non-filtered transparent
>    }
>
> something like
>
>   image_map {
>      gif "mypic.gif"
>      filter   <0,0,0>, 0.5
>           // RGB value of color 0, make it 50% filtered transparent
>      filter   <0,128,0>, 1.0
>          // RGB value of color 5, make it 50% filtered transparent
>      transmit <0,255,255>, 0.3
>          // RGB value of color 8, make it 30% non-filtered transparent
>    }
>
> I'm assuming for such a convention that if the color is not present there is no
> filter or transmit applied.
>
> Any thoughts?

Yes, this one: Why bother with old-fashioned GIF files anyway?


Post a reply to this message

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