Bitmap/Midpoint circle algorithm: Difference between revisions

Updated D entry
(Updated D entry)
Line 367:
 
void circle(Color)(Image!Color img, in int x0, in int y0,
in int radius, in Color color) pure nothrow @nogc {
pure nothrow @nogc @safe {
int f = 1 - radius;
int ddfX = 1;
Line 398 ⟶ 399:
}
 
void main() @safe {
auto img = new Image!RGB(25, 25);
img.clear(RGB.white);