FANDOM


Syntax

HEADING

Explanation

HEADING outputs the turtle's heading, an integer from 0 to 359. Straight up is 0, to the right is 90, down is 180, and to the left is 270.

Use SETHEADING to set the turtle's haeding.

DRAW and CLEARSCREEN set the turtle's heading to 0.

Example

TO NAUTILUS

RT 5
FORWARD HEADING
BACK HEADING
IF HEADING < 130 THEN NAUTILUS

END

This procedure slowly moves the turtle around, drawing longer lines as the heading increases.

? NAUTILUS
Pc logo 28

This is a result of the procedure.

?

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.