FANDOM


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

Pc logo 37

This is an ORIGIN command example. Its executes "SETWIDTH 10 (DOT) SETORIGIN [0 30] GETXY ORIGIN" command.

? SETWIDTH 10 \

? (DOT)

? SETORIGIN [0 30]

? GETXY

Result: [0 0]

? ORIGIN

Result: [0 30]

?

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.