https://github.com/aquapi/dwc
This website let you make drawings with code
https://github.com/aquapi/dwc
code drawing-app
Last synced: 8 months ago
JSON representation
This website let you make drawings with code
- Host: GitHub
- URL: https://github.com/aquapi/dwc
- Owner: aquapi
- Created: 2022-06-27T02:53:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-11T16:05:17.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T01:34:10.198Z (10 months ago)
- Topics: code, drawing-app
- Language: JavaScript
- Homepage: https://dwc-aquapi.vercel.app/
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)`