Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takluyver/mobilechelonian
Turtles on a notebook
https://github.com/takluyver/mobilechelonian
Last synced: 6 days ago
JSON representation
Turtles on a notebook
- Host: GitHub
- URL: https://github.com/takluyver/mobilechelonian
- Owner: takluyver
- License: other
- Created: 2014-06-13T23:08:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-04-29T12:44:29.000Z (over 1 year ago)
- Last Synced: 2024-12-13T01:22:19.119Z (13 days ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 101
- Watchers: 7
- Forks: 38
- Open Issues: 13
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
*"Nevertheless... the turtle moves!"* - Small Gods, by Terry Pratchett
This is a Turtle module for the Jupyter Notebook. It's based on code by
`aspidites `_, one of two groups at
`Macewan University `_ that built Turtle
as a class assignment (the other was `PACattack `_;
I could have based this on either, but I had to pick one).Install it in a terminal/command prompt with::
pip install mobilechelonian
Using it looks like this::
from mobilechelonian import Turtle
t = Turtle()
t.speed(5)
colours=["red","blue","yellow","brown","black","purple","green"]t.penup(); t.left(90); t.forward(200);t.right(90);t.pendown()
for i in range (0,18):
t.pencolor(colours[i%7])
t.right(20)
t.forward(50)t.right(180)
t.home().. image:: sample.png
.. image:: http://mybinder.org/badge.svg
:target: https://beta.mybinder.org/v2/gh/takluyver/mobilechelonian/master?filepath=try.ipynb