SETORIGIN

Syntax

SETORIGIN [xvalue yvalue]

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. Input for SETORIGIN is a list of two integers, the first being the X value and the second being the Y value. The coordinates are always relative to the standard turtle coordinate system, where [0 0] is the center of the window.

See also ORIGIN.

Example

? SETWIDTH 10 (DOT)

? SETORIGIN [0 30]

? GETXY

Result: [0 0]

? ORIGIN

Result: [0 30]

?