Skip to content

Instantly share code, notes, and snippets.

@codehaks
Created August 18, 2020 18:47
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 codehaks/88b1f3f970dd55353fda8906a0a8b3f5 to your computer and use it in GitHub Desktop.
Save codehaks/88b1f3f970dd55353fda8906a0a8b3f5 to your computer and use it in GitHub Desktop.
import turtle
t=turtle.getturtle()
t.speed(100)
t.fillcolor("yellow")
t.begin_fill()
t.pensize(5)
t.pencolor("black")
t.forward(100)
t.circle(25,180)
t.forward(100)
t.circle(25,180)
t.end_fill()
t.penup()
t.setposition(0,-75)
t.pendown()
t.fillcolor("green")
t.begin_fill()
t.pensize(5)
t.pencolor("black")
t.forward(100)
t.circle(25,180)
t.forward(100)
t.circle(25,180)
t.end_fill()
t.penup()
t.setposition(0,+75)
t.pendown()
t.fillcolor("red")
t.begin_fill()
t.pensize(5)
t.pencolor("black")
t.forward(100)
t.circle(25,180)
t.forward(100)
t.circle(25,180)
t.end_fill()
t.penup()
t.setposition(0,-125)
t.pendown()
t.fillcolor("red")
t.begin_fill()
t.pensize(5)
t.pencolor("black")
t.forward(125)
t.circle(50,90)
t.forward(300)
t.circle(50,90)
t.forward(125)
t.circle(50,90)
t.forward(300)
t.circle(50,90)
t.end_fill()
input("Press any key...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment