Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aquapi/dwc

This website let you make drawings with code
https://github.com/aquapi/dwc

code drawing-app

Last synced: 2 days ago
JSON representation

This website let you make drawings with code

Awesome Lists containing this project

README

        

# DWC
Drawing with code.

## Statements
Some code stuff.

### Then statement

- Usage: Connect two statement
- Syntax: ` then `

### Move statement

- Usage: Move the pen (will draw a line if the pen status is down)
- Syntax: `move `

### Rotate statement

- Usage: Rotate the pen
- Syntax: `rotate `

### Pen statement

- Usage: Set pen status
- Syntax: `pen `

### Goto statement

- Usage: go to a position without drawing a line
- Syntax `goto `

### Repeat statement

- Usage: Repeat a statement
- Syntax: `repeat

## Code examples

- [Draw a circle](https://dwc-six.vercel.app/?code=repeat%20360%20(move%201%20then%20rotate%201)): `repeat 360 (move 1 then rotate 1)`
- [Draw a square](https://dwc-six.vercel.app/?code=repeat%204%20(move%2090%20then%20rotate%2090)): `repeat 4 (move 90 then rotate 90)`