From 74f77706c948a4aa4af46099c9df660778638cb4 Mon Sep 17 00:00:00 2001 From: Kaio Henrique Date: Sun, 1 Dec 2024 21:16:08 -0300 Subject: [PATCH] cancel manima project --- animacao/manima.py | 131 --------------------------------------------- 1 file changed, 131 deletions(-) diff --git a/animacao/manima.py b/animacao/manima.py index 780f82b..e69de29 100644 --- a/animacao/manima.py +++ b/animacao/manima.py @@ -1,131 +0,0 @@ -import turtle as tl -import time - -#setup -tl.setup(900,600,None,None) - -#funções aleatorias super nescessarias -def retan(color): - tl.begin_fill() - tl.color(color) - tl.fd(200) - tl.left(90) - tl.fd(100) - tl.left(90) - tl.fd(200) - tl.left(90) - tl.fd(100) - tl.end_fill() - tl.up() - tl.left(180) - tl.fd(100) - tl.right(90) - #pass - -def eyes(size): - tl.down() - tl.color("white") - tl.begin_fill() - tl.circle(size) - tl.end_fill() - tl.color("black") - tl.circle(size) - tl.up() - #pass - -#63 iterações no reichtangle -def reichtangle(pos): - tl.goto(pos, -150) - tl.down() - retan("black") - retan("light gray") - retan("red") - tl.up() - tl.right(90) - tl.fd(50) - tl.left(90) - tl.fd(50) - eyes(15) - tl.fd(100) - eyes(15) - #pass - -def french(pos, state): - tl.up() - tl.goto(pos,-150) - tl.begin_fill() - tl.color("white") - tl.circle(100) - tl.end_fill() - tl.color("black") - tl.circle(100) - tl.circle(100,30) - tl.begin_fill() - tl.color("blue") - tl.circle(100, 120) - tl.end_fill() - tl.color("black") - tl.circle(100, 60) - tl.begin_fill() - tl.color("red") - tl.circle(100, 120) - tl.end_fill() - if state == "normal": - tl.circle(100,60) - tl.seth(90) - tl.fd(130) - tl.left(90) - eyes(10) - tl.fd(50) - eyes(10) - elif state == "startled": - tl.circle(100,40) - tl.seth(90) - tl.fd(150) - tl.seth(180) - eyes(15) - tl.fd(80) - eyes(15) - - - - -#fundo de tela -tl.tracer(0) -tl.bgcolor("light blue") -bg = tl.Turtle() -bg.up() -bg.begin_fill() -bg.color("green") -bg.goto(-450,-300) -bg.down() -bg.goto(-450, 0) -bg.goto(450, 0) -bg.goto(450,-300) -bg.goto(-450,-300) -bg.end_fill() -bg.up() -bg.goto(400,250) -bg.begin_fill() -bg.color("Yellow") -bg.circle(25) -bg.end_fill() -bg.hideturtle() -tl.update() -tl.tracer(1) -tl.up() - -tl.tracer(0) -reichtangle(-400) -french(200, "startled") -tl.update() -#63 é o numero de iterações para 1 reichtangle -#for i in range(63): - #tl.undo() - - - - -tl.exitonclick() -tl.mainloop() -