O - Offset Macro
Macro Syntax: O a, v ;
This is the Offset command . The command must come after a Zone ( Z ) command. The offsets are applied to the active zone only. a is the aspect for that zone and v is the offset value for that aspect. The zone number ( z ) can only be a value of 1 to 8. The aspect value ( a ) can only be 1 to 6.
There are 6 aspects for any zone as follows:
1 = x coordinate offset (affects M, L, D commands)
2 = y coordinate offset (affects M, L, D commands)
3 = width (w) offset (affects E, R, G commands)
4 = height (h) offset (affects E, R, G commands)
5 = length (l) offset (affects L , M (when using using r, deg) commands)
6 = starting degree (deg) offset (affects L , M (using r, deg) commands)
The offset value ( v ) can be a positive or negative number. If a zone is active (using the Z command) then all the commands listed after it (until a new zone is defined or zone 0 is used which turns off zones) are affected by the offset values. The offset value is added (subtracted it negative number) to the appropriate aspect for these commands, based on the Frame number (see A command). Lets say we select a pen position x coordinate of say 10 (using the M command) . If the offset for the x coordinate is +15 and the frame number is say 12 then the pen position is offset by the follwing formula.
offset = (frame_num - 1) X x_offset
new_x = old_x + offset
or
165 = (12 - 1) X 15
new_x = 175 = 10 + 165
The purpose of this command is that with it you can easily create animation frames and move objects (zones) around. You only have to define the Vector commands the animation one time . Then to move each frame, you simply create a text string for each frame in your animation by prefacing the one animation sequence with an animation frame number using the following command: