Loading design...

A beautiful rose curve / polar rose 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
tracer(2)
bgcolor("black")
width(2)
hideturtle()
for i in range(360):
hue = i / 360
rgb = colorsys.hsv_to_rgb(hue, 1.0, 1.0)
color(rgb)
length = (math.sin(i * math.pi / 30) + 1) * 80
forward(length)
backward(length)
right(1)
done()