Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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 program

Simply 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/