Loading design...

A beautiful geometric square mandala / nested squares star created with Python Turtle. Read the code below, copy it, and try it in your own Python environment.
from turtle import *
import colorsys as cs
bgcolor('black')
pensize(6)
tracer(50)
def draw(num, max):
h = 0.9
for i in range(num):
color(cs.hsv_to_rgb(h,1,1))
h += 1/6
up()
goto(0, 0)
pd()
forward(max+i*0.9 )
rt(110)
for _ in range(4):
forward(max+i*0.9 )
lt(110)
draw(110, 50)
update()
done()