/*
** Program CIRCLE_1
**
** Illustrates how to draw circles.
**
** P. H. Anderson, MSU, 10 Nov, '94
*/
#include <stdio.h>
#include <graphics.h>
#include <conio.h>
/* this program draws a circle centered at x,y with a radius. */
void main(void)
{
int driver, mode, i;
driver = DETECT; /* autotect*/
mode = 0;
initgraph(&driver, &mode, "c:\\turboc");
setcolor(BLUE); /*sets the color of the circle */
circle (350, 250, 200);
setcolor(RED);
circle (200, 200, 50);
setcolor(YELLOW);
circle (200, 200, 40);
setcolor(MAGENTA);
circle (200, 200, 30);
setcolor(GREEN);
circle (200, 200, 20);
getch(); /* wait until key pressed */
restorecrtmode(); /* restores the screen to the original screen */
}