Loading design...

A beautiful circular heart ring created with Python Turtle. Read the code below, copy it, and try it in your own Python environment.
from turtle import *
import math
import colorsys
colormode(255)
speed(0)
width(2)
bgcolor('black')
def draw_heart(x, y, size, col):
penup()
goto(x, y)
pendown()
color(col)
begin_fill()
left(50)
forward(size * 0.8)
circle(size * 0.3, 200)
right(140)
circle(size * 0.3, 200)
forward(size * 0.8)
end_fill()
setheading(0)
draw_heart(0, -30, 120, "hotpink")
for i in range(8):
angle = i * 45
hue = i / 8
rgb = colorsys.hsv_to_rgb(hue, 1, 1)
col = (int(rgb[0] * 255), int(rgb[1] * 255), int(rgb[2] * 255))
x = 160 * math.cos(math.radians(angle))
y = 160 * math.sin(math.radians(angle)) + 20
draw_heart(x, y, 30, col)
hideturtle()
done()