| SETORIGIN | |
| Syntax | SETORIGIN [xvalue yvalue] SETORIGIN xyvalue (SETORIGIN) |
| Explanation | The SETORIGIN command allows the
coordinate system origin point to be set for active
turtles. Normally, the coordinate system origin (location
[0 0]) is in the center of the window. This origin may be
changed for all turtles or individually for any turtle.
The input for SETORIGIN is a list of two integers, an X
value and a Y value. The coordinates are always relative
to the standard turtle coordinate system, where [0 0] is
the center of the window. It is possible to set the origin for both the X and Y coordinates by supplying this value as a single input. (SETORIGIN) resets the origin to the center of the window. Each turtle, control, or bitmap can have its own origin on the screen. |
| Examples | ASK 0 [SETXY [-25 0] SETORIGIN
POS] ASK 1 [SETXY [25 0] SETORIGIN POS] TELL [0 1] FD 50 RT 135 FD 36 HOME
|