Skip to content

coryjquirk/python-turtle-graphics

Repository files navigation

python-turtle-graphics

a modest collection of drawings made with Python's Turtle module.

how to draw

to use the turtle module imported in each example's code, you must have tkinter installed.
as of 30.03.2021, the Python 3.9.2 Windows installer includes tkinter by default.
one other way to install tkinter:

  • open your Python 3 shell and write
    >>> import tkinter
    >>> tkinter._test()
  • once you see a 'test' window like this, you know tkinter is displaying graphics properly.

from there, run a file and enjoy as the drawing takes shape.

drawing examples

spirograph
spirograph

rainbow benzene
rainbow benzene

spiral
spiral

mandala
mandala

credits

source code for each drawing linked above. I made variations to the Python source code for each file to produce a desired appearance.

About

Colorful drawings made with Python's Turtle module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages