Skip to content

Instantly share code, notes, and snippets.

@alilosoft
Created June 7, 2018 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alilosoft/fe54ad12192e4da612baaeaaf2fa6e90 to your computer and use it in GitHub Desktop.
Save alilosoft/fe54ad12192e4da612baaeaaf2fa6e90 to your computer and use it in GitHub Desktop.
1MAC Draw Turtle Mini-Project
import turtle
def draw_square():
t = turtle.Turtle(shape="turtle")
t.color("dodger blue")
t.pensize(2)
for i in range(4):
t.forward(200)
t.right(90)
def draw_circle():
t = turtle.Turtle()
t.color("lime green")
t.pensize(3)
t.circle(100)
def draw_triangle():
t = turtle.Turtle()
t.color("magenta")
t.pensize(4)
for i in range(3):
t.backward(175)
t.left(120)
def picasso():
draw_board = turtle.Screen()
draw_board.bgcolor("peach puff")
draw_square()
draw_circle()
draw_triangle()
draw_board.exitonclick()
picasso()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment