You are on page 1of 1

 Plans  Learn  Help Sign Up Log In 

Put Turtle Graphics Anywhere on the Web


Customize the code below and  Share!

  ?   Remix 

  main.py +  
33 if shape == "line" :
34 turtle.setheading(rot)
35 turtle.forward(size)
36 if fill == "true" :
37 turtle.fillcolor(color)
38 turtle.end_fill()
39 turtle.penup()
40 turtle.done()
41 newt = t.Turtle()
42 newt.speed(10)
43 newt.penup()
44 draw("line",newt,"false","black",90,0,87,"true",0,-137)
45 draw("triangle",newt,"false","black",240,0,100,"true",0,-50)
46 newt.setheading(240)
47 newt.forward(100)
48 draw("line",newt,"false","black",30,0,58,"false",0,0)
49 newt.goto(0,-50)
50 newt.setheading(300)
51 newt.forward(100)
52 draw("line",newt,"false","black",150,0,58,"false",0,0)
53 draw("line",newt,"false","black",90,0,150,"true",0,-50)
54 draw("square",newt,"true","cyan",0,0,20,"true",-10,90)
55 draw("circle",newt,"true","cyan",0,0,10,"true",0,80)
56 newt.goto(0,100)
57 draw("circle",newt,"true","cyan",0,0,10,"false",0,0)
58 draw("circle",newt,"true","pink",0,0,8,"false",0,0)
59 newt.goto(300,300)

 Expand

Looking for the full power of Python 3? Check out our Python 3 Trinket

Want to use this to teach? Sign up for trinket!

or create account below

Enter your email... Choose a password... LET'S GO!

About Us Support Legal Connect


©2015-2023 Trinket
Our Story FAQ Terms of Service

Blog Help Privacy   


Partnerships Contact Us

Privacy - Terms

You might also like