|
 |
On 2026-02-26 09:17 (-4), Bald Eagle wrote:
>
> 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>
Good work!
The 1 should have been promoted to <1, 1, 1, 1, 1>. This would be
consistent with previous behavior and with other contexts where a scalar
appears in the same expression as a color or vector.
> Totally logical, yet totally unexpected!
Logic can give you wrong answers if a premise (in this case, the
promotion of the scalar) is wrong.
P.S. Not that it makes a difference here, but colors.inc defines `White`
as `rgb 1`, which means it does not need promotion. It already has the
value <1, 1, 1, 0, 0>.
Post a reply to this message
|
 |