6.0

Table Of Contents
68
Language Reference
4
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
Syntax
arc( x, y, arc_length, start_angle, end_angle )
Arguments
x, y — Measure values representing the x and y coordinates respectively of the center of the circle.
arc_length — Measure value representing the length of the arc.
start_angle — Measure value representing the start angle, in degrees, for the arc. Degrees are relative to a
standard X, Y axis, with a value of 0 degrees lying flush with the X axis. The value of the start angle can be
either positive or negative.
end_angle — Measure value representing the end angle, in degrees, for the arc. Degrees are relative to a
standard X, Y axis, with a value of 0 degrees lying flush with the X axis. The value of the end angle can be
either positive or negative.
Code Sample Examples
Example 1 draws a 180 degree arc 3 inches in length. The center of the circle is at (0,0). The rmoveto()
command that precedes the arc() command ensures the current point is set at the center of the circle and
prevents a line from being drawn from the current point to the start point of the arc.
Example 2 draws an arc 2.5 inches in length. The center for the arc is four inches from the left edge of the
page and three inches from the top edge. The arc starts at 30 degrees and ends at 60 degrees. The
A
C
D
B
E
F