POV-Ray : Newsgroups : povray.advanced-users : Color component extraction: Bug or advanced feature? : Re: Color component extraction: Bug or advanced feature? Server Time
30 Jul 2024 02:20:07 EDT (-0400)
  Re: Color component extraction: Bug or advanced feature?  
From: Thorsten Froehlich
Date: 7 May 2000 18:15:32
Message: <3915eb04@news.povray.org>
In article <3915e2d3$1@news.povray.org> , "Simen Kvaal" 
<sim### [at] studentmatnatuiono> wrote:

> #declare MyGoodFriend = <Color.red, Color.green, Color.blue>

Use

#declare MyGoodFriend = <(Color.red), (Color.green), (Color.blue)>;

instead.

The current parser is not perfect, and with complicated expressions
involving dot access to components of vectors and colors it sometimes acts
strange. We are aware of the various problems, especially when using dot
operations for color vectors, but this may not be fixed before the parser is
rewritten (i.e. in POV-Ray 4.0).

For now, usually placing braces around such operations works around most
problems (due the the recursive decent parsing used).


       Thorsten


____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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