ORIGIN

Syntax

ORIGIN

Explanation

The ORIGIN command outputs the coordinate system origin of the first active turtle in the form of a list with two integers, the first being the X value and the second being the Y value. The coordinates output by ORIGIN are relative to the standard turtle coordinate system, where [0 0] is the center of the window.

See also SETORIGIN.

Example

? SETWIDTH 10 \

? (DOT)

? SETORIGIN [0 30]

? GETXY

Result: [0 0]

? ORIGIN

Result: [0 30]

?