7.6

Table Of Contents
show('some more text')
Example 3
This example moves the point of origin back to its original position. Translate sets the new point of origin for all subsequent
commands. Consequently, translate commands are cumulative. Therefore, to restore the previous point of origin, you must
issue a translate command that negates whatever offset was previously applied.
translate(-2,-2)
Path
Arc and ArcN (procedures)
Arc()draws an arc in a counter-clockwise direction, while ArcN()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 using Arc() Example using ArcN().
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.
Syntax
arc( x, y, arc_length, start_angle, end_angle )
©2010 Objectif Lune Inc - 571 -