POV-Ray : Newsgroups : povray.general : strange problem with srgb color in light_source : Re: strange problem with srgb color in light_source Server Time
13 May 2024 08:41:29 EDT (-0400)
  Re: strange problem with srgb color in light_source  
From: Mike Horvath
Date: 12 May 2021 23:03:26
Message: <609c96fe$1@news.povray.org>
On 5/12/2021 11:00 PM, Mike Horvath wrote:
> On 4/1/2021 12:16 PM, Subclick wrote:
>> Perhaps we could use a macro like this in the ‘colors.inc’ file:
>>
>>    // Converts a color given in sRGB space to one in the ordinary RGB
>>    // space determined by ‘assumed_gamma’.
>>    #macro CsRGB2RGB(Color)
>>      #local Result = srgbft Color
>>      (Result)
>>    #end
>>
>> Now ‘#declare C4 = CsRGB2RGB(rgb <.5, .3, .7>)*50000;’ does work.
>>
> 
> 
> If we removed the srgb keyword and forced users to use a macro or some 
> other internal command like this, would it be more dummy-proof?
> 
> 
> 
> Mike


I may end up using your macro regardless because I am a dummy.


Mike


Post a reply to this message

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