forward
index
Name
forward ()
Description
Moves the Turtle forward a distance.
Syntax
forward(distance);
Parameters
distance
amount to move forward
(
double
)
Returns
None
Related
back()
Example
Turtle t = new Turtle(this); t.forward(100); t.drawPath(g);