Shape;
BoundingRectangle(2,2);

// This file contains all the commands and exercises each one a little.

// BoundingRectangle
BoundingRectangle(2,2);
// Arc
Arc(left,top,right,bottom,midx,top,right,midy);


// ChangePen
MoveTo(left,top);
LineTo(left,bottom);
ChangePen(PEN_DOT,1,RGB(255,0,0));
LineTo(right,top);
ChangePen(PEN_SOLID,1,RGB(0,0,0));

// Chord
Chord(left,top,right,bottom,midx,bottom,right,midy);
// Ellipse
Ellipse(left -grid,top -grid,right +grid,bottom +grid);

// LineTo
LineTo(left,top);
LineTo(right,bottom);

// MoveTo
MoveTo(left -grid,top);
LineTo(left -grid,bottom);
// Pie
SolidBrush(RGB(0,255,0);
Pie(left,top,right,bottom,right,midy,midx,top);

// point and Polygon
pt0.x = right +grid;
pt0.y = top;
pt1.x = right +grid;
pt1.y =top -grid;
pt2.x = right +2*grid;
pt2.y = top;
pt3.x = right +grid;
pt3.y = top;
Polygon(4);

// point and Polyline
pt0.x = right +2*grid;
pt0.y = top;
pt1.x = right +2*grid;
pt1.y =top -grid;
pt2.x = right +3*grid;
pt2.y = top;
pt3.x = right +2*grid;
pt3.y = top;
Polyline(4);


// Rectangle and StockBrush
StockBrush(LTGRAY_BRUSH);
Rectangle(left,bottom-grid,right,bottom -2*grid);

// Round Rectangle and Hatch Brush
HatchBrush(HS_CROSS,RGB(255,0,255);
RoundRect(left -3*grid,top,left -2*grid,bottom,grid,grid);

// Set Pixel
SetPixel(grid/2,grid/2,RGB(255,0,0);
SetPixel(grid,grid,RGB(255,0,0);

// Text Out
TextOut(left,bottom -grid,"Text Out Command");

//Bezier Spline
BezierCurve(c1x,c1y,c2x,c2y,e1x,e1y,e2x,e2y,6);

 ve(c1x,c1y,c2x,c2y,e1x,e1y,e2x,e2y,6);

 e2y,6);
 