Step forward / backward (in the direction of turtle's heading)

forward step
fd step

back step
bk step

Moves the turtle by a distance step in the direction of the turtle's heading (forward, fd) or opposite to the turtle's heading (back, bk). Turtle draws a line if its pen is down.


repeat 10 [
  fd 150 rt 18 bk 150 rt 18

Output: drawing in the graphics window.

See also:

Table of Content