Woofy's Corner

So after years of seeing circles in MakeCode not look like perfect circles, I decided to look into the code.
Here it is:


As the comment says, this is Bresenham’s circle algorithm. Looking this up, the algorithm seems to have been correctly written, so… why do they look weird?

Well as it turns out, I have literally no clue.

Anyways, I personally think the circles look better with a “warp” of 0 instead of 10 and they look more circular like this. Unfortunately if we fixed this it would probably make some old games look different or maybe even break them so this probably can’t be nicely fixed.

5 Likes

Asked Richard today on stream and he says yeah it’s obvious they messed up the algorithm somehow but they are “open to PRs” so if I find out what the algorithm is actually supposed to be or maybe a faster one (there are a lot out there) I’ll see if I can submit a pr and get this fixed!

6 Likes