Turtle-based graphics library for drawing various shapes centered on the cursor. Also adds printed descriptions of what is drawn, including for built-in turtle functions.
Project description
turtleBeads
A library that provides some convenient functions for drawing shapes using Python's built-in turtle graphics. These shapes are drawn centered on the cursor, and are thus analogous to beads on a string.
It also provides a few different convenience functions like leap and
hop which help move around without drawing, and augments the built-in
turtle functions causing them to print out a description of what they
draw, with functions describeAs and endDescription allowing for
custom text descriptions of complex shapes.
Designed by Peter Mawhorter.
Dependencies
None.
Installing
To install from PyPI, run the following command on the command-line:
python -m pip install turtleBeads
Once it's installed, you can run the built-in examples using:
python -m turtleBeads
Documentation
See the documentation for more details on how to use it and what each function does.
Changelog
- 1.1.3: Fixed missing half-segment in
drawCirclecode. - 1.1.2: Added better error checking for
drawDot. Flipped order of changelog. - 1.1.1: Improved printed output for dots.
- 1.1.0:
- Introduced
fontandfixedWidthFontfunctions to allow font selection for drawing text. - Introduced
drawTextInBoxandfontSizeForTextInBoxfor auto-sizing of fixed-width text. - Introduced
drawPathfor drawing paths possibly with arrows on the ends. - Fixed a bug where using
describeAsand thendrawTextwould result in aRecursionError. - Made
describeAs/endDescriptionmaintain a stack of descriptions so that sub-objects trying to describe themselves doesn't end the description of a complex object (and their descriptions are suppressed).
- Introduced
- <1.1.0: Didn't keep a changelog.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file turtlebeads-1.1.3.tar.gz.
File metadata
- Download URL: turtlebeads-1.1.3.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64ea6bec2e439701b75d5e63d62a7e5d60a9a6b1a867f95cb3bd0c5baef69e4d
|
|
| MD5 |
a7c4486489040cf3f92336baf02800ba
|
|
| BLAKE2b-256 |
25ed879940962ac21b413837e63be71d716ef779d14ddedf75ad00228ecdc865
|
File details
Details for the file turtleBeads-1.1.3-py3-none-any.whl.
File metadata
- Download URL: turtleBeads-1.1.3-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38f2944a37d7117e67eaacea6ebdea275bb992b6d8babb4a5691872fc94a148b
|
|
| MD5 |
e2ccf7ab737e44cb54580b42e98afbcd
|
|
| BLAKE2b-256 |
eefc1cfd3de0f995fdd767909ff0a4413145033a1dd673723f92896f905532ba
|