Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/superatomic/spider
🕷 A small script that draws a picture of a spider using Python.
https://github.com/superatomic/spider
profile-image python python3 simple-project spider turtle turtle-graphics
Last synced: 10 days ago
JSON representation
🕷 A small script that draws a picture of a spider using Python.
- Host: GitHub
- URL: https://github.com/superatomic/spider
- Owner: superatomic
- License: mit
- Created: 2022-03-08T01:46:40.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T04:48:35.000Z (over 2 years ago)
- Last Synced: 2024-10-25T04:25:04.838Z (about 2 months ago)
- Topics: profile-image, python, python3, simple-project, spider, turtle, turtle-graphics
- Language: Python
- Homepage: https://gh.superatomic.dev
- Size: 592 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spider Drawing with Python's `turtle`
This is a very basic script to draw a spider with Python's [`turtle`](https://docs.python.org/3/library/turtle.html) graphics module.The resulting graphic is saved as a PostScript file to [`imgs/{circle,square}/spider.ps`](imgs/square/spider.ps).
If [Inkscape] is installed, SVG and PNG versions will be generated from the PostScript representation.
These images can be found at [`imgs/{circle,square}/spider.svg`](imgs/square/spider.svg) and [`imgs/{circle,square}/spider.png`](imgs/square/spider.png), respectively.The rendered drawing is used as [my profile image](https://github.com/superatomic).
## Output
![A spider](spider.png)
## Installation
### Download the source
Pick any method to install the source files or just [download the source files as a ZIP](https://github.com/superatomic/spider/archive/refs/heads/main.zip).- Git
```shell
git clone https://github.com/superatomic/spider.git
```
- Github CLI
```shell
gh repo clone superatomic/spider
```
### Running the programSimply run the program with `python3 main.py` to draw the spider.
This program has been verified to work on Python 3.7+, and may or may not work on lower versions.| :heavy_exclamation_mark: | Your Python installation must support [`tkinter`](https://docs.python.org/3/library/tkinter.html) for the program to run! |
|--------------------------|:--------------------------------------------------------------------------------------------------------------------------|## That's it!
Hopefully this program is useful to somebody someday. I certainly had fun writing it.
[Inkscape]: https://www.inkscape.org/