forward

Help Contents Graphics Relative Turtle Motion forward
Relative Turtle Motion fd

forward dist
fd dist


moves the turtle forward, in the direction that it's facing, by the specified distance (measured in turtle steps).

If penDown?==true then the turtle draws a line in her path. If cylinder lines are enabled then she draws a cylinder in her path.

Examples:

repeat 4 [forward 100 right 90]

cs
fd 100
rt 90
fd 100
lt 60
fd 50

cs
perspective
enableCylinderLines
setpenSize [50 50]
setPenColor 4
fd 100
rt 90
fd 100

Examples:

References:

Relative Turtle Motion fd