https://github.com/inspiaaa/faster-turtle
A faster turtle implementation for Python written in pure Python
https://github.com/inspiaaa/faster-turtle
Last synced: about 1 year ago
JSON representation
A faster turtle implementation for Python written in pure Python
- Host: GitHub
- URL: https://github.com/inspiaaa/faster-turtle
- Owner: Inspiaaa
- Created: 2019-07-08T15:54:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T11:49:42.000Z (about 7 years ago)
- Last Synced: 2025-03-01T21:52:23.464Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Faster Turtle
Faster Turtle is another turtle implementation written in pure Python. As its name indicates, it is faster than Python's default turtle implementation. Although Python's default one is better for real-time and learning, Faster Turtle offers incredible performance for rendering.
## Same as Python's Turtle
```Python
from turtle import Turtle
from random import randint
from pil_renderer import PILRenderer
t = Turtle()
t.pendown()
for i in range(18):
t.begin_poly()
t.fill(randint(100, 255), 0, randint(100, 255))
t.forward(25)
t.right(15)
t.forward(25)
t.right(165)
t.forward(25)
t.right(15)
t.forward(25)
t.right(25)
t.end_poly()
renderer = PILRenderer()
t.render(renderer)
renderer.show()
```
The only noticeable difference is that the turtle uses an external renderer to produce the result:
