Skip to content

JonLiuFYI/DrawPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DrawPi

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.

Install and use

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

License and copyright

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.

About

Find the value of pi by drawing a circle

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages