Adicionar desenho.py

Espada.
This commit is contained in:
MIGUEL FERNANDES DA CRUZ 2024-11-01 14:31:28 +00:00
commit 87799a6ee2
1 changed files with 41 additions and 0 deletions

41
desenho.py Normal file
View File

@ -0,0 +1,41 @@
import turtle
turtle.title('Desenho em py')
turtle.speed(5)
#cabo
turtle.color('red')
turtle.begin_fill()
turtle.goto(0,-40)
turtle.goto(15,-40)
turtle.goto(15,0)
turtle.goto(0,0)
turtle.end_fill()
#cabo 2
turtle.color('yellow')
turtle.begin_fill()
turtle.goto(-40,0)
turtle.goto(-40,12)
turtle.goto(40,12)
turtle.goto(40,0)
turtle.end_fill()
#lâmina
turtle.color('gray')
turtle.begin_fill()
turtle.up()
turtle.goto(-10,13)
turtle.down()
turtle.goto(-10,65)
turtle.goto(8,75)
turtle.goto(20,65)
turtle.goto(20,13)
turtle.end_fill()
turtle.done()