-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
import turtle
import math
t = turtle.Turtle()
t.speed(0)
t.color("red")
turtle.bgcolor("black")
def corazon(n):
x = 16 * math.sin(n) ** 3
y = 13 * math.cos(n) - 5 * math.cos(2 * n) -
2 * math.cos(3 * n) - math.cos(4 * n)
return x, y
t.penup()
for i in range(20):
t.goto(0, 0)
t.pendown()
for n in range(0, 100, 2):
x, y = corazon(n / 10)
t.goto(x * i, y * i)
t.penup()
t.hideturtle()
turtle.done()
Metadata
Metadata
Assignees
Labels
No labels