A turtle based package that makes drawing common geometric plane shapes a breeze.
Project description
planefigures
planefigures
is a python package based on the turtle library. It takes the pain out of drawing plain shapes.
Installation
pip install planefigures
Python 3 is supported.
Example
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.
Road map
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
planefigures-0.3.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for planefigures-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd0b23b9fdd06fa2b68b0720412927c6f17137bef7fb40d81d306361ba5df5c1 |
|
MD5 | 55fe05ab805dd15c3c54eabb6b5dd45c |
|
BLAKE2b-256 | c0c4748fe4667e6bced1018c204db28324a7a6ac13a7092366d79d4f45628ef8 |