POV-Ray : Newsgroups : povray.general : Strange syntax : Re: Strange syntax Server Time
26 Feb 2026 15:48:42 EST (-0500)
  Re: Strange syntax  
From: Bald Eagle
Date: 26 Feb 2026 08:20:00
Message: <web.69a04805f71f0dca68a6daf225979125@news.povray.org>
Cousin Ricky <ric### [at] yahoocom> wrote:

> The value of `White` never changes.  It is the expression `(White=1)`
> (which is a conditional in this context, not an assignment) that you
> should vstr().

Ah, yes.  Very interesting.

So <1, 1, 1> gets promoted to rgbft <1, 1, 1, 0, 0>,
and 1 gets promoted to <1, 0, 0, 0, 0>

and then comparing element by element ones gets

<1, 1, 1, 0, 0>
<1, 0, 0, 0, 0>
---------------
<1, 0, 0, 1, 1>


Totally logical, yet totally unexpected!

- BE


Post a reply to this message

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