Posted: 25th Jun 2021 14:59
Paul (or anybody in-the-know) -

The "What's New" notes for Build 2020.11.16 include

DrawLine, DrawBox, and DrawEllipse now accept colors with alpha values to draw partially transparent shapes

Using the MakeColor() command with a 4th parameter for alpha level works, but when the ellipse shape is drawn with a partially transparent color, there is a problem.

In the example ellipse I've included here, you can see a square shape in the ellipse, and also a cross-hair.



The DrawBox() command works fine, no problem.
Posted: 25th Jun 2021 19:06


are you on WIN, Rich?

added to Git
Posted: 26th Jun 2021 16:37
Yes, Windows10, using the June updated AGK2 Classic in Tier 1.

Thanks for posting in the git, I went there but didn't see a section for AppGameKit classic.
Posted: 14th Jul 2021 4:06
If I had to take a guess, the issue was probably always there but without alpha values it was never apparent until now. It looks like it's calculating the alpha pixel in some areas more than once, having an additive effect. The crosshair could be a simple precision issue with how it fills the circle, because it only needs to calculate pixel positions for a quarter of the circle and a simple translation of that quarter to the other 3 quadrants.
Posted: 14th Jul 2021 21:36
"The crosshair could be a simple precision issue with how it fills the circle, because it only needs to calculate pixel positions for a quarter of the circle and a simple translation of that quarter to the other 3 quadrants."

Interesting point, and one to keep in mind when looking for maximum efficiency when coding anything involving horizontal/vertical symmetry!