PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Step into Bresenham Circle

I'm using the Bresenham Circle algorithm, but I'm drawing circles much, much larger than the screen. Does anyone know of a technique to jump into a circle at a specific y instead of having to iterate each off-screen span from the top / bottom edge of the circle?

So far my searching has only turned the bread-and-butter Bresenham algorithm.

Thanks.

Dan East
Nevermind, I figured it out myself. It requires a square root, but it's worth it to save thousands of iterations.

Dan East
If you are having to ask, you think WE can answer it? ;)

JJB