Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 888 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 888 Bytes

DWC

Drawing with code.

Statements

Some code stuff.

Then statement

  • Usage: Connect two statement
  • Syntax: <statement> then <statement>

Move statement

  • Usage: Move the pen (will draw a line if the pen status is down)
  • Syntax: move <distance>

Rotate statement

  • Usage: Rotate the pen
  • Syntax: rotate <degree>

Pen statement

  • Usage: Set pen status
  • Syntax: pen <up or down>

Goto statement

  • Usage: go to a position without drawing a line
  • Syntax goto <x> <y>

Repeat statement

  • Usage: Repeat a statement
  • Syntax: repeat <time> (<statement>)

Code examples