Bitmap/Midpoint circle algorithm: Difference between revisions

Undo revision 260557 by Diaphore (talk)
(Move one addition outside the loop.)
(Undo revision 260557 by Diaphore (talk))
Line 444:
{
int f = 1 - radius;
int ddF_x = 10;
int ddF_y = -2 * radius;
int x = 0;
Line 464:
x++;
ddF_x += 2;
f += ddF_x + 1;
plot(x0 + x, y0 + y);
plot(x0 - x, y0 + y);
Anonymous user