Creating Graphics
Creating Graphics
The next example shows one way to move the rectangle to dierent positions on the display.
100 | OUTPUT 723;"PU;PA 0,0;PD;" | Position pen. |
110 | OUTPUT 723;"PR | Draw rectangle . |
120 | OUTPUT 723;"PU;PA 300,300;PD;" | Position pen. |
130 | OUTPUT 723;"PR | Draw rectangle . |
140 | OUTPUT 723;"PU;PA 600,600;PD;" | Position pen. |
150 | OUTPUT 723;"PR | Draw rectangle . |
Reposition the Rectangle
The OSA draws dierent types of lines, which are specied by the
100 | FOR N=0 TO 750 STEP 150 | Repeat lines 110 through 140 for six values of N: 0,150,300,450,600, |
|
| and 750. |
110 | L=L+1 | Increase L by one . |
120 | OUTPUT 723;"LINET ";L;";" | Select line type . |
130 | OUTPUT 723;"PU;PA ",N,N;";PD;" | Position pen. |
140 | OUTPUT 723;"PR | Draw rectangle . |
150 | NEXT N |
|
The OR command osets the position of graphics on the display relative to P1 , in the current scale units. The programs below draw a box. In the rst example, the box is drawn without any oset. In the second, the box is oset 500 units in the X and Y directions.
120 OUTPUT 723;"PU;PA 0,0;PD;" | Place pen down at 0,0. |