Find the value of pi by drawing a circle! Great for when you forget all the digits. Celebrating Pi Day 2023.
Select the picture to see an animated demo.
![Static screenshot of DrawPi. Pi is about 3.14115.](/JonLiuFYI/DrawPi/raw/main/screenshot.png)
This program requires Python 3.10 or higher and Pyxel. The dependencies are also listed in the Poetry section of pyproject.toml.
To install using Poetry:
poetry install
To install without Poetry:
pip install pyxel
Then run the program by launching drawpi.py:
python drawpi.py
Copyright © 2023 JonLiuFYI
The source code of DrawPi, the .py
files, is released under the Apache 2.0 License. See LICENSE.
The images in the DrawPi directory, demo.gif and screenshot.png, are licensed under CC BY 4.0.