From 87799a6ee27e00e71197cd06d20411b332b0f12b Mon Sep 17 00:00:00 2001 From: MIGUEL FERNANDES DA CRUZ Date: Fri, 1 Nov 2024 14:31:28 +0000 Subject: [PATCH] Adicionar desenho.py Espada. --- desenho.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 desenho.py diff --git a/desenho.py b/desenho.py new file mode 100644 index 0000000..ac59e13 --- /dev/null +++ b/desenho.py @@ -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() \ No newline at end of file