Set turtle's heading in degrees

setheading degrees
seth degrees

Set turtle's current heading to the angle specified in degrees w.r.t. the positive Y axis.

Example:

repeat 12 [
  seth 30 * repcount
  print heading
  fd 50
  stamp (turtleimg heading)
  bk 50
  wait 200
]

Output:

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

See also:

Turtle - object

Table of Content