Pookkalam by Nimisha

Code

# background
c1 = circle(r=150, fill="black", stroke="#780000", stroke_width=3)
show(c1)

# Outer rectangles
s1 = rectangle(w=215, h=215, fill='#F8E63D', stroke="none") | rotate(5) | repeat(9,  rotate(10))
s2 = rectangle(w=205, h=205, fill="#ffc400", stroke="none") | rotate(10) | repeat(10, rotate(10))
s3 = rectangle(w=195, h=195, fill="#ffa600", stroke="none")  | rotate(5)| repeat(10, rotate(10))
s4 = rectangle(w=185, h=185, fill="#ff3c00", stroke="none")  | rotate(10)| repeat(10, rotate(10))
s5 = rectangle(w=175, h=175, fill="#ad2800", stroke="none")  | rotate(5)| repeat(10, rotate(10))
s6 = rectangle(w=165, h=165, fill="#143b00", stroke="none")  | rotate(10)| repeat(10, rotate(10))
show(s1, s2, s3, s4, s5, s6)

# circle
c1 = circle(r=103, fill="#e6f9ff", stroke="#46942A", stroke_width=3)
show(c1)

# petals
e1 = ellipse(w=100, h=30, x=50, fill="#780000", stroke="none")|repeat(24,rotate(15))
e2 = ellipse(w=100, h=30, x=50, fill="#ff4000", stroke="none")|repeat(12,rotate(30))
show(e1, e2)
# petal circles
c1 = circle(x=80, y=0, r=5, fill="#780000", stroke="none") | repeat(12, rotate(30))
c2 = circle(x=80, y=0, r=5, fill="#ff4000", stroke="none") | rotate(15) | repeat(12, rotate(30))
show(c1, c2)

# circles
c1 = circle(r=75, fill="#c700ac", stroke="none")
c2 = circle(r=70, fill="#f533db", stroke="none") 
c3 = circle(r=65, fill="#f069de", stroke="none")
c4 = circle(r=60, fill="#f58020", stroke="none")
c5 = circle(r=55, fill="#ff9d4d", stroke="none")
c6 = circle(r=50, fill="#f7af74", stroke="none")
show(c1, c2, c3, c4, c5, c6)

# elipse pattern
shape2 = ellipse(h=50, w=100, fill="#3200c7", stroke="white", stroke_width=3) | rotate(30) | repeat(6, rotate(30))
show(shape2)

# Flower center
bud = circle(r=15,fill="#fcfafc")
petals = ellipse(y=30, w=15,h=45, stroke="#00000", stroke_width = 1,fill="#2A7BF7") | repeat(30,rotate(100))
flower = (petals + bud) | scale(0.8)
show(flower)

# Tinkerhub logo
r1 = rectangle(w=10, h=4, x=-2, y=5, fill="#04bfcf", stroke="none")
r2 = rectangle(w=4, h=4, x=6, y=5, fill="#0161ff", stroke="none")
r3 = rectangle(w = 15, h=4, x=0.5, y=0, fill="#fecc0e", stroke="none")
r4 = rectangle(w=6, h=4, x=-4.1, y=-6, fill = "#ef1900", stroke="none")
r5 = rectangle(w=3, h=4, x=2, y=-6, fill = "#95bf15", stroke="none")
r6 = rectangle(w=3, h=4, x=6, y=-6, fill = "#215b67", stroke="none")
show(r1, r2, r3, r4, r5, r6)