Code
base_circle = circle(r=142, fill="#753a88") # Base of the പൂക്കളം
def outer_rectangular_layer(): # Outer yellow, red, blue rectangular layers
r1 = rectangle(h=200, w=200, fill="#ffcd10", stroke='none' ) | repeat(10, rotate(27))
r2 = rectangle(h=180, w=180, fill="#ee1700", stroke='none') | repeat(10, rotate(27))
r3 = rectangle(h=160, w=160, fill="#05bfce", stroke='none') | repeat(10, rotate(27))
layer = combine([r1,r2,r3])
return layer
def green_circular_layer(): # Green circular layer with small colorful circles
green_circle = circle(r=95, fill="#013220", stroke='none')
light_yellow_circle = circle(r=85, fill="#FFFACD ")
circle_in_round1 = circle(r=5, fill="red", x=90, stroke='none') | repeat(50, rotate(22.5))
circle_in_round2 = circle(r=5, fill="#95BF15", x=90, stroke='none') | repeat(50, rotate(45))
circle_in_round3 = circle(r=5, fill="#0060FF", x=90, stroke='none') | repeat(50, rotate(90))
layer = combine([green_circle, light_yellow_circle, circle_in_round1, circle_in_round2, circle_in_round3])
return layer
def inner_polygon(): # Inner Polygon
p = point(0,0)
q = point(60,0)
r= point(60,60)
layer = polygon([p,q,r], fill='#ffcf4d', stroke='none') | repeat(8, rotate(45))
return layer
def inner_pookalam_layer(): # Floral like layer made using two ellipses
e1 = ellipse(w=110, h=40, fill="#ff7a05", stroke='none') | repeat(100, rotate(45))
e2 = ellipse(h=20, w=95, fill="#94034C", stroke='none') | repeat(100, rotate(10))
layer = combine([e1,e2])
return layer
def inner_rectangular_layer(): # Inner Yellow gradient rectangular layer
r1 = rectangle(w=60, h=60, fill="#FFC800",stroke="none") | repeat(6, rotate(60))
r1 = r1 | rotate(90)
r2 = rectangle(w=50, h=50, fill="#808000",stroke="none") | repeat(6, rotate(60))
r2 = r2 | rotate(45)
r3 = rectangle(w=40, h=40, fill="#333300",stroke="none") | repeat(6, rotate(60))
r3 = r3 | rotate(90)
layer = combine([r1,r2,r3])
return layer
def th_logo(): # Tinkerhub Logo
c = circle(r=15, fill="white")
r1 = rectangle(x=-4, y=7, w=10, h=5, fill="#05BFCE", stroke="none")
r2 = rectangle(x=6, y=7, w=5, h=5, fill="#0060FF", stroke="none")
r3 = rectangle(x=-0.5, w=18, h=5, fill="#FFCD10", stroke="none")
r4 = rectangle(x=-6, y=-7, w=6, h=5, fill="#EE1700", stroke="none")
r5 = rectangle(x=0, y=-7, w=4, h=5, fill="#95BF15", stroke="none")
r6 = rectangle(x=6, y=-7, w=4, h=5, fill="#205864", stroke="none")
logo = combine([c, r1, r2, r3, r4, r5, r6])
return logo
#Function Calling
outer_rectangular_layer = outer_rectangular_layer()
green_circular_layer = green_circular_layer()
inner_rectangular_layer = inner_rectangular_layer()
inner_polygon = inner_polygon()
inner_pookalam_layer = inner_pookalam_layer()
tinkerhub_logo = th_logo()
# Show 'em all
show(base_circle,outer_rectangular_layer, green_circular_layer, inner_polygon, inner_pookalam_layer, inner_rectangular_layer, tinkerhub_logo)
print("🌺🌺 Happy Onam 🌺🌺")