-
FORWARD num
FD num
-
This command moves the turtle forward (num) steps. The turtle lines a
trail if the pen is down. FD is same command.
ex)
FD 100
FD rand(100)
-
BACK num
BK num
-
This command backs the turtle (num) steps. The turtle lines a trail
if the pen is down. BK is same command.
ex)
BK 100
BK rand(100)
-
LEFTTURN num
LT num
-
This command orders the turtle to turn left (num) degree. LT is same
command.
ex)
LEFTTURN 50
LT 30
-
RIGHTTURN num
RT num
-
This command orders the turtle to turn right (num) degree. RT is same
command.
ex)
RT 50
-
UP num
-
This command orders the turtle to turn up (num) degree.
ex)
UP 30
-
DOWN num
DN num
-
This command orders the turtle to turn down (num) degree. DN is same
command.
ex)
DN 30
-
MOVELEFT num
ML num
-
This command moves the turtle to the left (num) step. The turtle keeps
same sense. ML is same command.
ex)
ML 30
-
MOVERIGHT num
MR num
-
This command moves the turtle to the right (num) step. The turtle keeps
same sense. MR is same command.
ex)
MR 30
-
MOVEUP num
MU num
-
This command moves the turtle to the up (num) step. The turtle keeps
same sense. MU is same command.
ex)
MU 30
-
MOVEDOWN num
MD num
-
This command moves the turtle to the down (num) step. The turtle keeps
same sense. MD is same command.
ex)
MU 30
-
ROTATELEFT num
RL num
-
This command rotate the turtle to the left (num) degree. RL is same
command.
ex)
RL 30
-
ROTATERIGHT num
RR num
-
This command rotate the turtle to the right (num) degree. RR is same
command.
ex)
RR 30
-
PENUP
PU
PENDOWN
PD
-
PENDOWN commands the turtle to line when the turtle moves. PD is same
command. PENUP and PU are the inversion.
ex)
PU ML 30 PD FD 100
-
REPEAT num [command(s)]
REP num [command(s)]
-
ex)
REP 4 [ FD 100 RT 90 ]