https://github.com/nrxss/turtlesketch
Draw simple sketches with console input or a macro file, using the python turtle library
https://github.com/nrxss/turtlesketch
drawing fun python python-turtle python3 sketch turtle turtle-graphics
Last synced: about 1 month ago
JSON representation
Draw simple sketches with console input or a macro file, using the python turtle library
- Host: GitHub
- URL: https://github.com/nrxss/turtlesketch
- Owner: nrxss
- License: apache-2.0
- Created: 2023-04-08T15:34:46.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-09T12:54:18.000Z (about 2 years ago)
- Last Synced: 2025-01-27T11:18:01.500Z (3 months ago)
- Topics: drawing, fun, python, python-turtle, python3, sketch, turtle, turtle-graphics
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Turtlesketch 🐢
**Draw simple sketches with console input or a macro file, using the python turtle library**
License: [Apache 2.0](/LICENSE)
### Commands
- move [pixels] - Move forward for specified distance, backward with a negative
- turn [degrees] - Turn right for specified degrees, left with a negative
- toggle - Toggle to show pointer (pen position/rotation); useful with complex sketches
- switch - Switch between normal and blank output (pen down/pen up)
- color [color] - Sets brush color to specified (hex supported); Black can be used as an eraser
- macro [path to file] - Runs a macro file.### Macro file
To use a macro, give the command `macro path/to/file.x`.The extension does not matter, but each command has to be separated by a new line, like this:
```arduino
move 100
turn 90
move 100
turn 90
move 100
turn 90
move 100
```
(this creates a square)For a more complex one, check out [macro.txt](/macro.txt)