Barco
from turtle import *
setup (450,400,0,0)
screensize (300,150)
title("Barco")
hideturtle()
pensize(5)
fillcolor("red")
begin_fill()
goto(100,0)
goto(50,100)
goto (0,0)
end_fill()
fillcolor("blue")
begin_fill()
goto(-100,0)
goto(0,-100)
goto(100,-100)
goto(200,0)
goto(100,0)
end_fill()
done()
setup (450,400,0,0)
screensize (300,150)
title("Barco")
hideturtle()
pensize(5)
fillcolor("red")
begin_fill()
goto(100,0)
goto(50,100)
goto (0,0)
end_fill()
fillcolor("blue")
begin_fill()
goto(-100,0)
goto(0,-100)
goto(100,-100)
goto(200,0)
goto(100,0)
end_fill()
done()
from
turtle import *
setup (450,200,0,0)
screensize (300,150)
title("ventana")
hideturtle()
pensize(5)
fillcolor("green")
begin_fill()
goto(100,0)
goto(50,100)
goto (0,0)
end_fill()
fillcolor("brown")
begin_fill()
goto(40,0)
goto(40,-50)
goto(60,-50)
goto (60,0)
end_fill()
done()
FIGURA MARIPOSA
Figura
turtle
from
turtle import *
setup (600,500,0,0)
screensize (100,100)
penup()
pendown()
pensize(5)
fillcolor("magenta")
begin_fill()
goto(40,20)
goto(20,60)
goto(40,100)
goto(80, 120)
goto(40, 160)
goto(80, 220)
goto(60, 240 )
goto(120, 220)
goto(140, 140)
goto(150, 180)
goto(160, 140)
goto(180, 220 )
goto(240, 240 )
goto(220, 220 )
goto(260, 160)
goto(220, 120)
goto(260, 100)
goto(280, 60)
goto(260, 20)
goto(220, 30)
goto(180, 60)
goto(160, 100)
goto(150, 80)
goto(140,100)
goto(120,60)
goto(80,30)
goto(40,20)
end_fill()
setup (600,500,0,0)
screensize (100,100)
penup()
pendown()
pensize(5)
fillcolor("magenta")
begin_fill()
goto(40,20)
goto(20,60)
goto(40,100)
goto(80, 120)
goto(40, 160)
goto(80, 220)
goto(60, 240 )
goto(120, 220)
goto(140, 140)
goto(150, 180)
goto(160, 140)
goto(180, 220 )
goto(240, 240 )
goto(220, 220 )
goto(260, 160)
goto(220, 120)
goto(260, 100)
goto(280, 60)
goto(260, 20)
goto(220, 30)
goto(180, 60)
goto(160, 100)
goto(150, 80)
goto(140,100)
goto(120,60)
goto(80,30)
goto(40,20)
end_fill()
No hay comentarios.:
Publicar un comentario