A fun way to get started with graphics and data science in python
Project description
Introduction
Start your Data Science journey with Turtler. Written to make learning fun!
Getting Started
Turtler is built on top of turtle but makes drawing easy.
Import
from turtler import Turtler
Initialize
myTurtler = Turtler()
Move and Draw
myTurtler.go(DIRECTIONS)
myTurtler.draw(DIRECTIONS)
DIRECTIONS is a string consisting of:-
Character | Direction |
---|---|
u | UP |
d | DOWN |
l | LEFT |
r | RIGHT |
EXAMPLE:-
directions = "uldr"
myTurtler.go(directions)
End Drawing
myTurtler.done()
Other Methods
Set Animation Speed
myTurtler.setSpeed(YOUR_SPEED)
Options:
- fastest
- fast
- normal
- slow
- slowest
Set Step Size
myTurtler.setSpeed(YOUR_SIZE)
YOUR_SIZE is an int object
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
turtler-0.0.3.tar.gz
(3.4 kB
view hashes)