Three integer algorithms drawing circles

Midpoint and two versions of Bresenham algorithm for drawing circle.

You are now following this Submission

bresenham_circle => code by CHANDAN KUMAR modified to work as a function, returning X and Y coordinates of circle point with zero origin

bresenham_circle2 => algorithm from Wikipedia (http://en.wikipedia.org/wiki/Midpoint_circle_algorithm)

midpoint_circle => midpoint algorithm from http://groups.csail.mit.edu/graphics/classes/6.837/F98/Lecture6/circle.html

circle_test => explains why i had to look for the third algorithm, and the first two were not good enough :)

Cite As

Xenya (2026). Three integer algorithms drawing circles (https://www.mathworks.com/matlabcentral/fileexchange/40212-three-integer-algorithms-drawing-circles), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0