Skip to content

Files

Latest commit

5a60250 · Jun 15, 2021

History

History
29 lines (23 loc) · 1.5 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.5 KB

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.