Draw_Arc

Draw_Arc(X1, Y1, X2, Y2, Startx, Starty, Endx, Endy, Color)

   

Draw_Arc is a call that draws a portion of the ellipse that is inscribed inside the given rectangle.  It has 8 required parameters:

 

(X1,Y1) and (X2,Y2) are the two opposite corners of the rectangle.

 

The arc begins at the intersection of the ellipse and the line passing through the center of the ellipse and (Startx,Starty).  It then proceeds counter-clockwise until it reaches the intersection of the ellipse and the line passing through the center of the ellipse and (Endx,Endy).  In the below diagram, the red section of the ellipse would be drawn.

 

 

Color specifies a color for the arc.

 

Note:  A graphics window must be open when Draw_Arc is called or a run-time error will occur.

 

Examples:

 

Draw_Arc(1,100,200,1,250,50,2,2,black)

 

yields the following (as seen in a 300x300 window):