AMT Datasouth PAL User Manual
Page 167
161
90 rotate
+X
+Y
0,0
-Y
-X
270 rotate
-X
-Y
0,0
+Y
+X
Hints
The following two examples produce the exact same label image. They both draw the word
"Sideways" starting at 72,72 and running from the bottom of the page toward the top.
72 72 moveto
90 rotate
(Sideways) show
-90 rotate
90 rotate
72 -72 moveto
(Sideways) show
-90 rotate
The relationship between the first rotate and the moveto demonstrates the two approaches to
using the rotate operator. The first example demonstrates the first approach. The moveto operator
first establishes the current point using the existing coordinate system. The rotate operator then
rotates the coordinate system, but does not affect the current point.
The second example demonstrates the second approach. The example starts by rotating the
coordinate system. As a result, the programmer must specify the coordinates for the moveto
operator in the new rotated coordinate system. Examining the coordinate system diagrams
provided above in conjunction with the example will show why the Y coordinate requires a
negative value.