import turtle
turtle.speed(1)
fondo = turtle.Screen()
fondo.bgcolor("yellow")
for i in range(4):
turtle.forward(100)
turtle.right(90)
turtle.done()
import turtle
turtle.speed(1)
fondo = turtle.Screen()
fondo.bgcolor("yellow")
for i in range(4):
turtle.forward(100)
turtle.right(90)
for j in range(1):
turtle.forward(100)
turtle.right(80)
turtle.done()
import turtle
turtle.speed(10)
fondo = turtle.Screen()
fondo.bgcolor("yellow")
for i in range(40):
turtle.forward(100)
turtle.right(90)
for j in range(1):
turtle.forward(100)
turtle.right(80)
turtle.done()
2. Triángulo
import turtle
turtle.speed(1)
fondo = turtle.Screen()
fondo.bgcolor("gray")
turtle.pensize(2)
for i in range(3):
turtle.forward(150)
turtle.left(120)
turtle.done()
import turtle
turtle.speed(10)
fondo = turtle.Screen()
fondo.bgcolor("gray")
turtle.pensize(2)
for i in range(4):
turtle.forward(150)
turtle.left(120)
for i in range(1):
turtle.forward(150)
turtle.left(150)
turtle.done()
import turtle
turtle.speed(10)
fondo = turtle.Screen()
fondo.bgcolor("gray")
turtle.pensize(2)
for i in range(10):
turtle.forward(150)
turtle.left(120)
for i in range(1):
turtle.forward(150)
turtle.left(80)
turtle.done()
import turtle
turtle.speed(10)
fondo = turtle.Screen()
fondo.bgcolor("gray")
turtle.pensize(2)
for i in range(12):
turtle.forward(80)
turtle.left(120)
for i in range(1):
turtle.forward(80)
turtle.right(150)
turtle.done()
No hay comentarios:
Publicar un comentario