6.0

Table Of Contents
69
rmoveto() command that precedes the arc() command moves the current point to the center of the circle,
resulting in a line that is drawn from the center of the circle to the start point of the arc.
Example 1
rmoveto(3,0)
arc(0,0,3,0,180)
stroke()
Example 2
rmoveto(4,3)
arc(4,3,2.5,30,60)
stroke()
ArcN (procedure)
Draws an arc in a clockwise direction. If there is a current point set, the command draws a straight line from
the current point to the start point of the arc. Whether or not a current point is set when the command
executes, after execution the current point is the end point of the arc.
You define the arc you want to draw by specifying the x and y coordinates of the center of the circle, the
radius of the circle, and the start and end points for the arc. You specify each of the start and end points of
the arc as an angle; the command uses the angle to position the point. For example, to position the start
point, the command draws an invisible line at the specified start angle from the center of the circle, the
length of the radius; it positions the start point at the end of that line.
Example of an arc drawn from start point D to end point F: A. Center of circle (x,y) B. Radius C. Start angle D. Start point of arc
E. End angle F. End point of arc
A
C
B
E
F
D