POV-Ray : Newsgroups : povray.general : strange problem with srgb color in light_source : Re: strange problem with srgb color in light_source Server Time
12 May 2024 17:47:30 EDT (-0400)
  Re: strange problem with srgb color in light_source  
From: Mike Horvath
Date: 12 May 2021 23:00:21
Message: <609c9645$1@news.povray.org>
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


Post a reply to this message

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