Pookkalam by Abhishek S

Code

outercircle = circle(r=150,fill="#003306",stroke="none")
show(outercircle)
shape1 = rectangle(fill="red",w=210, h=210,stroke="none") | repeat(9, rotate(10))
show(shape1)
shape2 = rectangle(fill="#fcbe03",w=195, h=195,stroke="none") | rotate(5) | repeat(9, rotate(10))
show(shape2)
shape3 = rectangle(fill="yellow",w=180, h=180,stroke="none") | repeat(9, rotate(10))
show(shape3)
outercircle1 = circle(r=114,fill="#003306",stroke="none")
show(outercircle1)
shape4 = circle(fill="yellow",x=108, y=0, r=10,stroke="none") | repeat(72, rotate(5))
show(shape4)
shape5 = circle(fill="green",x=104, y=0, r=10,stroke="none") | repeat(77, rotate(9))
show(shape5)
shape6 = circle(fill="yellow",x=108, y=0, r=10,stroke="none") | repeat(77, rotate(18))
show(shape6)
outercircle2 = circle(r=100,fill="#003306",stroke="none")
show(outercircle2)
shape7 = rectangle(fill="#430054",x=95, y=0, w=20,h=20,stroke="none") | rotate(9) | repeat(77, rotate(18))
show(shape7)
shape7 = rectangle(fill="#91BF23",x=90, y=0, w=10,h=20,stroke="none") | rotate(9) | repeat(77, rotate(18))
show(shape7)
shape7 = rectangle(fill="#91BF23",x=95, y=0, w=20,h=20,stroke="none") | repeat(77, rotate(18))
show(shape7)

shape7 = rectangle(fill="yellow",x=90, y=0, w=11,h=20,stroke="none") | repeat(77, rotate(18))
show(shape7)

def square(color, side):
    return rectangle(w=side, h=side, fill=color, stroke='none')

r2 = square(side=79,color='yellow')  | rotate(25)| repeat(10,  rotate(30))
r3= square(side=97,color='orange') | rotate(10) | repeat(10,  rotate(30))
r4=square(side=117,color='red')  | rotate(25)| repeat(10,  rotate(30))
show(r4,r3,r2)
c12=circle(r=45,fill="#003306",stroke="none")
show(c12)

p1 = point(x=0, y=0)
p2 = point(x=8, y=14)
p3 = point(x=0, y=44)

shape = polygon([p1, p2, p3],stroke="none",fill="#7800a1")| repeat(6,  rotate(60))
show(shape)


p1 = point(x=0, y=0)
p2 = point(x=-8, y=14)
p3 = point(x=0, y=44)

shape = polygon([p1, p2, p3],stroke="none",fill="#2CC0CF") | rotate(0)
show(shape)
shape1 = polygon([p1, p2, p3],stroke="none",fill="#2078F9") | rotate(60)
show(shape1)
shape2 = polygon([p1, p2, p3],stroke="none",fill="#FECD3D") | rotate(120)
show(shape2)
shape3 = polygon([p1, p2, p3],stroke="none",fill="#EE3C35") | rotate(180)
show(shape3)
shape4 = polygon([p1, p2, p3],stroke="none",fill="#91BF23") | rotate(240)
show(shape4)
shape5 = polygon([p1, p2, p3],stroke="none",fill="#008ca8") | rotate(300)
show(shape5)

c13 = circle(r=5,x=0,y=35,stroke="none",fill="#2CC0CF") | rotate(30)
show(c13)
c14 = circle(r=5,x=0,y=35,stroke="none",fill="#2078F9") | rotate(90)
show(c14)
c15 = circle(r=5,x=0,y=35,stroke="none",fill="#FECD3D") | rotate(150)
show(c15)
c16 = circle(r=5,x=0,y=35,stroke="none",fill="#EE3C35") | rotate(210)
show(c16)
c17 = circle(r=5,x=0,y=35,stroke="none",fill="#91BF23") | rotate(270)
show(c17)
c18 = circle(r=5,x=0,y=35,stroke="none",fill="#008ca8") | rotate(330)
show(c18)