POV-Ray : Newsgroups : povray.general : Color usage and crash : Re: Color usage and crash Server Time
26 Apr 2024 03:24:51 EDT (-0400)
  Re: Color usage and crash  
From: Thomas de Groot
Date: 3 Sep 2019 03:22:57
Message: <5d6e14d1$1@news.povray.org>
Op 02/09/2019 om 17:25 schreef kurtz le pirate:
> Hi,
> 
> Inside a loop, i compute a color with this basic code :
>      #declare thisHSL = rgb <360*i/N, 1, 0.40>;
>      #declare thisRGB = CHSL2RGB(thisHSL);
> 
> 
> Always in the same loop, if i use the color like that :
>          pigment {rgb thisRGB }
> 
> POVRay say : Parse warning : Suspicious expression after rgb.

The 'suspicious' expression is that 'rgb' is used twice.
either write:

#declare thisHSL = <rgb*i/N, 1, 0.40>;

without the 'rgb'; or, later in the loop:

pigment {thisRGB}


> And after progress in loop, crash !!!

See Bald Eagle's comment concerning the crash.

> 
> On the other hand, if i use the color like that :
>      pigment {rgb <thisRGB.red, thisRGB.green, thisRGB.blue> }
> 
> all is OK !
> 
> Where is a problem ?
> 
> 
> I use POV-Ray 3.8.0-alpha10013324.unofficial on Mac.
> 
> 


-- 
Thomas


Post a reply to this message

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