POV-Ray : Newsgroups : povray.beta-test : Syntax error message? : Re: Syntax error message? Server Time
5 May 2024 10:25:18 EDT (-0400)
  Re: Syntax error message?  
From: Thomas de Groot
Date: 7 Dec 2012 08:24:41
Message: <50c1ee19@news.povray.org>
On 7-12-2012 13:21, clipka wrote:
> Not really; for instance, you might be using a legacy 3rd-party include
> file, designed for a "assumed_gamma 2.2" scene, specifying
>
>      #declare SkinColor = rgb <226, 167, 135>/255;
>
> In that case, you'd very likely want to convert that to whatever
> assumed_gamma you're using; that's where specifying
>
>      srgb SkinColor
>
> does makes sense.
>
> Note that colors specified with the "srgb" keyword are not a different
> flavor of color - they're converted "on the spot" into regular rgb
> colors. So the parser cannot catch a double application of the srgb
> keyword.
>

OK. Understood and makes sense. I have to watch my own code corrections 
while writing and editing ;-)

Thanks Christoph!

Thomas


Post a reply to this message

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