Extensions to Python's turtle
Project description
Superturtle
Superturtle provides extensions to Python's turtle
module, supporting richer drawing,
image export, and animation.
Installation
First, make sure ImageMagick is installed. (If you use homebrew, this can be accomplished
with brew install imagemagick
.) Then, Superturtle can be installed using pip or poetry.
pip install superturtle
Usage
Please see the Superturtle documentation.
Pedagogy
This module was originally developed as part of Making With Code, a constructionist introductory computer science curriculum. Perhaps the most unusual design decision is this module's heavy use of context managers. For example:
from turtle import forward
from superturtle.stroke import dots
with dots():
forward(100)
Context managers are generally not introduced early in a CS curriculum, but they fit naturally with other constructs which contextualize code blocks: loops, conditionals, and function definition. We hypothesize that introducing intuitive context managers with easy-to-visualize effects may reinforce the more abstract role of control structures, and may support students in learning to read indented Python code.
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
File details
Details for the file superturtle-0.1.0.tar.gz
.
File metadata
- Download URL: superturtle-0.1.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feda70ac1aad02a11de35fad03e2fd305a9a9ae0888a6e5834a3adf7a50268ff |
|
MD5 | 55788de0b5752e5c828258f56d904965 |
|
BLAKE2b-256 | 08c23d0508b5f4834f7fe00c46bb113cf1b76d69a3131878d3b6ce74872020f0 |
File details
Details for the file superturtle-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: superturtle-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c6489fffcfe70e2e5476f25fbe3b130adc79aa651966c5d2fa0beb95642d0fd |
|
MD5 | 01c49458e065413ee4a8ffb487104a50 |
|
BLAKE2b-256 | 2b4f4f7e9217c7dd53216fd0449e3206266d099ac40fec0b3a41e8793d4c93fd |