A turtle based package that makes drawing common geometric plane shapes a breeze.
planefigures is a python package based on the turtle library. It takes the pain out of drawing plain shapes.
pip install planefigures
Python 3 is supported.
Try out this little peace of code and be amazed.
import planefigures as figures import turtle figures.color('red','yellow') figures.begin_fill() for n in range(8): figures.polygon(8, 80) turtle.right(360/8) figures.end_fill()
Or better still ...
python -m planefigures.example
At this stage, only regular polygons are supported. The aim however, is to support regular as well as irregular shapes.
- [x] Circle
- [ ] Scalene triangle
- [ ] Isosceles triangle
- [x] Right triangle
- [ ] Obtuse triangle
- [x] Rectangle
- [x] Parallelogram
- [ ] Trapezium
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size planefigures-0.3.0-py3-none-any.whl (4.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size planefigures-0.3.0.tar.gz (3.4 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for planefigures-0.3.0-py3-none-any.whl