Last active
February 10, 2016 15:34
-
-
Save amontalenti/d3d3725fc04283e2bce3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
t = turtle.Turtle() | |
t.color('orange') | |
# self-test | |
t.left(180) | |
t.left(-180) | |
# this is a U | |
t.right(90) | |
t.forward(150) | |
t.left(90) | |
t.forward(50) | |
t.forward(50) | |
t.left(90) | |
t.forward(150) | |
t.right(90) | |
t.penup() | |
t.forward(20) | |
# this is a V | |
t.pendown() | |
t.right(90) | |
t.left(50) | |
t.right(20) | |
t.forward(150) | |
t.left(90) | |
t.left(40) | |
# fix a bug | |
#t.forward(150) | |
#t.backward(150) | |
t.forward(150) | |
t.right(70) | |
# fix another bug | |
#t.forward(150) | |
#t.backward(150) | |
t.penup() | |
t.forward(20) | |
# this is an A | |
t.pendown() | |
t.right(90) | |
t.forward(150) | |
t.backward(150) | |
t.left(90) | |
t.forward(40) | |
t.right(90) | |
t.forward(150) | |
t.backward(75) | |
t.left(90) | |
t.right(180) | |
t.forward(40) | |
# wait a few seconds to soak it in | |
import time | |
time.sleep(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is what it draws: