POV-Ray : Newsgroups : povray.general : remap RGBT color to anther RGBT color? : Re: remap RGBT color to anther RGBT color? Server Time
30 Jul 2024 12:27:13 EDT (-0400)
  Re: remap RGBT color to anther RGBT color?  
From: Chris B
Date: 12 Jul 2009 04:03:01
Message: <4a5998b5@news.povray.org>
"caduser" <nomail@nomail> wrote in message 
news:web.4a592f0bbddeda84dbd439ba0@news.povray.org...

> Christian Froeschlin <chr### [at] chrfrde> wrote:
>> Chris B wrote:
>> > They would seem to be able to do exactly what you're asking for.
>>
>> I think he did not want to have colors change except pure Black/White.
>>
>
> Thanks Chris I will try both the Min Max and this latest suggestion, the 
> min max
> still has an effect on all the mid colors but if I understand this one it 
> seems
> it may work. I will try it this week and see what I get.
>

If you use a small value then the number of mid colors is very small (and 
possibly 0). The 'clip' syntax suggested by clipka is probably the most 
succinct:

color rgbt 
<clip(<%R%>,0.00001,0.99999),clip(<%G%>,0.00001,0.99999),clip(<%B%>,0.00001,0.99999),<%A%>>

Otherwise the syntax that Christian posted should give you a very precise 
control over the values.

Chris B.


Post a reply to this message

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