Posted: 17th Nov 2021 0:00
Remind me, Sure this was mentioned as fixed in a patch note?

+ Code Snippet
	UINT iColor = agk::MakeColor(97, 97, 97, 100);
	agk::DrawEllipse(100, 300, 100, 100, iColor, iColor, 1); 


Posted: 17th Nov 2021 0:47
Yeah the internal drawing calculations are off, I got rid of the lines by adding a 1 pixel offset to the internal drawing commands but the top and bottom is drawn, then in another pass the sides are drawn overlapping what's already been drawn adding to the alpha, thus causing the box ....





@TGC, The commented code at the bottom of the function does work (again with adding pixel offset in the Y, any reason why it was commented and replaced with broken code?

Posted: 17th Nov 2021 1:00
fixed in a patch note?

i dont remember that (either) but https://github.com/TheGameCreators/AGK-Studio/issues/827
re: https://forum.thegamecreators.com/thread/227682
Posted: 17th Nov 2021 1:08
Ah, that was it maybe, I remember the post, knew I remembered something about it, anyhow, I fixed it and pushed it to my repo

this is what I was after, nice procedural round buttons

+ Code Snippet
	UINT iColor = agk::MakeColor(97, 97, 97, 100);
	UINT iColor2 = agk::MakeColor(97, 97, 97, 255);
	UINT iColor3 = agk::MakeColor(197, 197, 197, 200);
	UINT iColor4 = agk::MakeColor(197, 197, 197, 150);
	UINT iColor5 = agk::MakeColor(197, 197, 197, 100);
	agk::DrawEllipse(300, 300, 100, 100, iColor, iColor2, 1);
	agk::DrawEllipse(300, 300, 100, 100, iColor2, iColor2, 0);
	agk::DrawEllipse(300, 300, 101, 101, iColor3, iColor3, 0);
	agk::DrawEllipse(300, 300, 102, 102, iColor3, iColor4, 0);
	agk::DrawEllipse(300, 300, 103, 103, iColor3, iColor5, 0);
	agk::DrawEllipse(300, 300, 104, 104, iColor, iColor, 0);


Posted: 17th Nov 2021 10:24
Actually I stand corrected, there is an issue with that code when changing the window size it warps the shape slightly, didn't notice it at first but when I got something behind the drawing and max'ed the window it really shows.



Back to the drawing board...literally!
Posted: 18th Nov 2021 8:14
Ah.... I am a utter moron, I was + on the size but not - on the position, it does work as intended, with my dodgy numbers it was supposed to look like that.

I am working up a more indepth example but this I will test and check everything!