Copyright © 2004, 2007
Robert W. Hasker
#include <graphics.h>
SetupGraphics();
MoveTo(0, 350);
LineTo(500, 0);
MoveTo(200, 100); // top corner
LineTo(250, 150); // go down right side
LineTo(150, 150); // across the bottom
LineTo(200, 100); // back to top corner
Rectangle(200, 200, 250, 250); // gives a square!
Circle(450, 250, 75);
SetPenColor(Green);
// rectangle from (20, 20) to (150, 50) with rounded corners
// rounding is controlled by the 10, 5
RoundRect(20, 20, 150, 50, 10, 5);
SetBrushColor(Red);
Circle(400, 50, 35);
SetBrushColor(Red);
SetBrushStyle(Solid);
Circle(400, 50, 35);
SetPenStyle(ClearPen);
SetBrushColor(Orange);
SetBrushStyle(Cross); // cross-hatch pattern
Circle(375, 150, 40);