HACKER Q&A
📣 shivajikobardan

Why choose pixels while rasterizing circle?


https://imgur.com/a/2e21Yro

Like here, I can simply plot the pixel that is a part of circle. I don't quite get with this choosing a midpoint, finding a distance from midpoint stuffs.

https://funloop.org/post/2021-03-15-bresenham-circle-drawing-algorithm.html

I am studying about bresenham's circle drawing algorithm btw.


  👤 pestatije Accepted Answer ✓
its relevant for drawing outlines and anti-aliasing

👤 magicalhippo
This is the sort of questions LLMs can be fairly useful for. They give you a reasonable answer since it's a well-known topic and you can immediately ask follow-up questions.