Bresenham's Circle Drawing C++ Program #include<conio.h> #include<Graphics.h> #include<stdio.h> void main() { int gd = DETECT, gm; initgraph (&gd, &gm, "C:\\TC\\BGI" ) ; int xc, yc, x, y, r, D; printf ( "Enter Radius of Circle: " ); scanf ( "%d" , &r); printf ( "Enter coordinates of centre of Circle: " ); scanf ( "%d%d" , &xc, &yc); x=0; y=r; D=3-(2*r); //Initial Decision parameter while (x<=y) { putpixel ( y+xc, x+yc, 15 ); //……octet-1 putpixel ( x+xc, y+yc, 15 ); //……octet-2 putpixel ( -x+xc, y+yc, 15 ); //……octet-3 putpixel ( -y+xc, x+yc, 15 ); //……octet-4 putp...
Learn Computer Graphics. This is for all those people who want to learn about computer graphics and its applications. By following these tutorials you can easily learn computer graphics.