nasty color bug

I attach an example (colorbug.tmd) done with version 2.3.7 but it’s present in earlier versions.
Basically you have two layout generators that generate two overlapping shapes. The first one is colored with an orange hue which includes a certain amount of green. The second one is colored with a green color.
Now, if the sum of the green component of the overlapping part exceed 255 then you’ll have a sort of “shadow” in the resulting image (b.png), otherwise you have the expected result of one shape superimposing over the other (a.png) I attach an image (result.png) that says it all.

Hi,

very strange. I’ve confirmed this behavior here, but I cannot find a reason for it yet, except possibly catastrophic cancellation and precision issues with floating point color math. Looking into it.

I’ve confirmed that this was due to floating point precision cancellation in the chooser, leading to a difference in the final bit of the result.

I have fixed this; it will appear in the next patch.