Skip to content

🕷 A small script that draws a picture of a spider using Python.

License

Notifications You must be signed in to change notification settings

superatomic/spider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spider Drawing with Python's turtle

This is a very basic script to draw a spider with Python's turtle graphics module.

The resulting graphic is saved as a PostScript file to imgs/{circle,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 and imgs/{circle,square}/spider.png, respectively.

The rendered drawing is used as my profile image.

Output

A spider

Installation

Download the source

Pick any method to install the source files or just download the source files as a ZIP.

  • Git
    git clone https://github.com/superatomic/spider.git
  • Github CLI
    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.

Your Python installation must support tkinter for the program to run!

That's it!

Hopefully this program is useful to somebody someday. I certainly had fun writing it.