Turtle's heading in degrees

heading

Returns current heading of a turtle w.r.t. the positive Y axis.

Example:

repeat 12 [
  print heading
  rt 30 fd 30
  wait 200
]

Output:

0
30
60
90
120
150
180
-150
-120
-90
-60
-30

See also:

Table of Content