7.5

Table Of Contents
Examples
Example 1 illustrates basic usage of the syntax.
$my_square
$page1
$box5
Example 2 scales the $header element to one quarter of its original size, and rotates it 90 degrees.
scale( 0.25, 0.25 )
setangle( 90 )
$header
Example 3 creates a thumbnail of each of the first two pages and positions the thumbnails side-by-side.
scale( 0.10, 0.10 )
$page1
translate( 8.5, 0 )
$page2
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.
©2010 Objectif Lune Inc - 407 -