Midpoint circle generation algorithm
This makes use of a circle function. Based on this circle function, a decision parameter is created which is used to decide successive pixel positions. Pixel positions are computed only in one octant because of the symmetry of the circle. On the seven other quadrants, pixels are generated by reflection about the lines parallel to the axes and y = ± x and passing through the center of the circle.