jupyterlab-jbturtle
Simple turtle module for JupyterLab
JBTurtle
- This module uses Pillow
- Attention: Almost impractical with FireFox because of FOUC. Do not use with FireFox.
Install
pip install Pillow
pip install jbturtle
Sample
from jbturtle import *
turtle = JBTurtle(640, 400)
nn = 0
for count in range(100):
turtle.line_hsv(nn, 1, 1)
turtle.forward(100)
turtle.turn_right(85)
nn += 5
Functions
- JBTurtle(xs, ys)
- Constructor
- xs: x-size of workspace
- ys: y-size of workspace
- init(xs, ys)
- Initialization
- xs: x-size of workspace
- ys: y-size of workspace
- forward(dst)
- turn_right(angle)
- turn_left(angle)
- move(x, y)
- pen_up()
- pen_down()
- speed(spd)
- line_width(lw)
- line_color((r, g, b))
- line_rgb(r, g, b)
- line_hsv(h, s, v)
Metadata
Release files for jbturtle 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jbturtle-0.2.6.tar.gz | 3.9 kB | Without provenance | Details for jbturtle-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jbturtle-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for jbturtle-0.2.6-py3-none-any.whl |
Total release size: 10.0 kB
Release files / jbturtle-0.2.6.tar.gz
| Download URL | jbturtle-0.2.6.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4464d1440941a27822fdcb1d78e49eb81606f073b37ac99a23685e2093dc7686
|
|
BLAKE2b-256 checksum How to use checksums |
8492c150a42a04b11275ce01ef437fb2b95ea02dc116dc97f025873742e7934e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / jbturtle-0.2.6-py3-none-any.whl
| Download URL | jbturtle-0.2.6-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87cbcaa4f8bbdd7443e881b053c2055c99df07b308bc714ade10df445ddff2ab
|
|
BLAKE2b-256 checksum How to use checksums |
f0f9a0ea1a93d7ea5dcaa46e97bc0900591ec65a431291a9094b2d430bad64fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for jbturtle 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.