From a97bf90c5b6d9585f54b92bcc7cb587e24a49648 Mon Sep 17 00:00:00 2001 From: antoniogonher19-bot Date: Sun, 21 Sep 2025 16:40:29 -0500 Subject: [PATCH] Create Mi amor --- Mi amor | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Mi amor diff --git a/Mi amor b/Mi amor new file mode 100644 index 0000000..e96a4a1 --- /dev/null +++ b/Mi amor @@ -0,0 +1,45 @@ +from turtle import * +from math import * + +speed(0) +bgcolor("black") +goto(0, -40) + +# Draw leaves +for i in range(16): + for j in range(18): + color('#FFA216') + rt(90) + circle(150 - j * 6, 90) + lt(90) + circle(150 - j * 6, 90) + rt(180) + circle(40, 24) + +# Draw flower center +color('black') +shape('circle') +shapesize(0.5) +fillcolor('#8B4513') +golden_ang = 137.508 +phi = golden_ang * (pi / 180) + +for i in range(140): + r = 4 * sqrt(i) + theta = i * phi + x = r * cos(theta) + y = r * sin(theta) + penup() + goto(x, y) + setheading(i * golden_ang) + pendown() + stamp() + +# Texto en el centro de la flor +penup() +goto(0, -10) # Ajusta la posición del texto +color("orange") +write("C.E.V.M", align="center", font=("Arial", 20, "bold")) + +hideturtle() +done()