Table of contents
Commands
Command Example Description H H center the turtle in the drawing area
point in direction 0M M 5 move forward ? steps L L 2 turn left (0-6) R R 6 turn right (0-6) U U pen up (stop drawing) D D pen down (start drawing) C C 3 pen color (1-6) S S 2 pen size (1-9) Note:
- Commands are case insensitive.
- Commands are a single letter usually followed by a space and number.
- A turn value of 0 reset the direction to 0. Direction 0 is a special direction. It points to the top of the drawing area. All other directions are relative to the move direction
- Unknown commands or values stop execution. - The move step size is fixed and defined in the app configuration.Pen Color (1-6)
# Pen Color 1 black 2 white 3 red 4 green 5 blue 6 yellow Note: unknown pen color stop execution
Pen Size (1-9)
# Pin Size 1 2 3 4 5 6 7 8 9 Note: unknown pen sizes stop execution
Turn Directions (1-6)
Note:
- Turn directions are both left and right.
- Unknown direction values stop execution. - Direction 0 is a special direction. It points to the top of the drawing area. All other directions relate to the move direction.
- There is 15° between turn directions. - To turn more than 90°, execute more than one turn command.