Programa del Barquito
Captura:
Código:
from turtle import * setup(600,600,0,0) pencolor("black") pensize(2) hideturtle() fillcolor("brown") begin_fill() goto(-120, 0) pendown() goto(-80, -60) goto(80, -60) goto(120, 0) goto(0,0) end_fill() fillcolor("black") begin_fill() penup() goto(-20, 0) pendown() goto(-20,140) goto(0,140) goto(0,0) end_fill() fillcolor("white") begin_fill() penup() goto(0,140) pendown() goto(80,100) goto(0,60) end_fill() done()
No hay comentarios:
Publicar un comentario