Skip to content

Instantly share code, notes, and snippets.

@sunx2
Created April 5, 2021 17:31
Show Gist options
  • Save sunx2/0275d3b6f54556075bde50b04681bb14 to your computer and use it in GitHub Desktop.
Save sunx2/0275d3b6f54556075bde50b04681bb14 to your computer and use it in GitHub Desktop.
H='black'
F=list
import turtle as A
C={90:100,30:100,330:100,270:100,180:180}
A.begin_fill()
A.pensize(1)
A.color(H,'grey')
for B in F(C.keys()):A.setheading(B);A.forward(C[B])
A.end_fill()
G=[(173.21,100.0),(86.6,150.0),(173.21,0.0)]
for B in G:A.up();A.setpos(B);A.down();A.color(H);A.setheading(0);A.forward(150)
D={90:100,150:100}
for B in F(D.keys()):A.setheading(B);A.forward(D[B])
A.up()
A.setpos((50,0))
A.begin_fill()
A.fillcolor('yellow')
A.down()
A.setheading(90)
A.forward(50)
A.setheading(0)
A.forward(50)
A.setheading(-90)
A.forward(50)
A.end_fill()
A.up()
A.setpos((230,40))
A.down()
A.begin_fill()
A.fillcolor('blue')
E={90:20,0:50,-90:20,180:50}
for B in F(E.keys()):A.setheading(B);A.forward(E[B])
A.end_fill()
A.up()
A.setpos((50,100))
A.color('pink')
A.write("Sun's House")
A.hideturtle()
A.done()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment