Simple Turtle system for JupyterLab
Project description
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
- show()
- 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)
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
jbturtle-0.2.4.tar.gz
(3.7 kB
view details)
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 jbturtle-0.2.4.tar.gz.
File metadata
- Download URL: jbturtle-0.2.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f57f27b2abac6e77cd947e05c604974c456e63037243fab39dfac3c42a6f4b5
|
|
| MD5 |
eb9bb1fcb8c8b815989ecf83ec1077d3
|
|
| BLAKE2b-256 |
0b47b02cb8b60deae9b92569055a9e6311bc0cc680a42c60346229454b19a7ba
|
File details
Details for the file jbturtle-0.2.4-py3-none-any.whl.
File metadata
- Download URL: jbturtle-0.2.4-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
016a5797c746778f88f392a47c09f5b7da692cfd927d0afb945d86ab6bb59cce
|
|
| MD5 |
2954f091c3d1f132c73a25a837dcfca7
|
|
| BLAKE2b-256 |
3ce2706d8a4b88760044d7fce0995faf693f3b1e047d3014b2e33950dd548197
|