Thorvicnet / donut.py

The donut program in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Donut.py - A Python implementation of Andy Sloane's Donut.c

This simple python program is based on the following article by Andy Sloane.

There are 2 versions of the program:

  • donutplot.py - This version uses matplotlib to plot the donut
  • donut.py - This version displays the donut in the terminal

donutplot.py

Matplotlib is required to run this code (pip install matplotlib)

python donutplot.py
donut-matplotlib-2023-11-12_15.34.59.mp4

donut.py

python donut.py
donut-terminal-2023-11-12_15.50.55.mp4

About

The donut program in python


Languages

Language:Python 100.0%