7.4

Table Of Contents
moveto(1,1)
lineto(1.5,2)
lineto(0,2)
closepath()
strokeandfill()
Translate (procedure)
Offsets an object's position from its original spot on the page. The point of origin of any object is (0,0) by default. All com-
mands within an object are relative to that point of origin. Moving, or translating the point of origin allows you to reset the point
of origin within the boundaries of the object.
Syntax
translate( x, y )
Arguments
x, y
Measure values representing the horizontal/vertical offset, in inches, of the new point of origin within the object. These values
are relative to the current point of origin, not absolute.
Code Sample Examples
Example 1
This example moves the point of origin 1 inch right and down from the original point.
translate(1,1)
show('some text')
Example 2
This example moves the point of origin 1 inch right and down from the current point.
translate(1,1)
show('some more text')
©2010 Objectif Lune Inc - 480 -