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
and enjoy.
At this stage, only regular polygons are supported. The aim however, is to support regular as well as irregular shapes.
- Circle
- Scalene triangle
- Isosceles triangle
- Right triangle
- Obtuse triangle
- Rectangle
- Parallelogram
- Trapezium
Check our contribution guide.
planefigures
is open-sourced software licensed under the MIT license.