TurtleCommand
public enum TurtleCommand
The commands for Turtle
.
-
Does nothing.
Declaration
Swift
case pass
-
Center the turtle.
Declaration
Swift
case center
-
Reset the direction of the turtle.
Declaration
Swift
case resetHeading
-
Set the direction of the turtle.
Declaration
Swift
case setHeading(Int)
-
Set the position of the turtle.
Declaration
Swift
case setPoistion(Int, Int)
-
Pen up.
Declaration
Swift
case penUp
-
Pen down.
Declaration
Swift
case penDown
-
Turn left to given angle.
Declaration
Swift
case turn(Int)
-
Move forward.
Declaration
Swift
case forward(Int)
-
Do a looping.
Declaration
Swift
case loop(Int, [TurtleCommand])
-
Set a macro.
Declaration
Swift
case setMacro(String, [TurtleCommand])
-
Play a macro.
Declaration
Swift
case playMacro(String)