Drawing with code.
Some code stuff.
- Usage: Connect two statement
- Syntax:
<statement> then <statement>
- Usage: Move the pen (will draw a line if the pen status is down)
- Syntax:
move <distance>
- Usage: Rotate the pen
- Syntax:
rotate <degree>
- Usage: Set pen status
- Syntax:
pen <up or down>
- Usage: go to a position without drawing a line
- Syntax
goto <x> <y>
- Usage: Repeat a statement
- Syntax:
repeat <time> (<statement>)
- Draw a circle:
repeat 360 (move 1 then rotate 1)
- Draw a square:
repeat 4 (move 90 then rotate 90)