Pookkalam by Nandagopal Ajith

Code

def flower():
    petal1=ellipse(x=0,y=7,h=14,w=5,fill="#F36636")|repeat(12,rotate(30))
    petal2=ellipse(x=0,y=10,h=20,w=8,fill="#f7da14")|repeat(12,rotate(30))
    bud=circle(r=4,fill="blue")
    flo=petal2+petal1+bud
    return flo


p1=point(x=0,y=0)
p2=point(x=20,y=50)
p3=point(x=40,y=50)
p4=point(x=0,y=110)
pattern1=polygon([p1,p2,p4,p3],fill="#cff71e",stroke="none") | repeat(4,rotate(90))
p5=point(x=-20,y=50)
p6=point(x=-40,y=50)
pattern2=polygon([p1,p5,p4,p6],fill="#cff71e",stroke="none") | repeat(4,rotate(90))
pattern=pattern1+pattern2

smallballs=circle(x=0,y=146,r=4,fill="red",stroke="green") | repeat(36,rotate(10))
show(smallballs)
smallballs2=circle(x=0,y=107,r=3,fill="purple",stroke="none") | repeat(24,rotate(15))

squares1=rectangle(x=0,y=0,h=30,w=30,stroke="none",fill="green") | repeat(12,rotate(30))
squares2=(rectangle(x=0,y=0,h=35,w=35,stroke="none",fill="#fbfc5a")|rotate(15)) | repeat(12,rotate(30))
squares3=rectangle(x=0,y=0,h=150,w=150,stroke="none",fill="#7e8509") | repeat(12,rotate(30))
squares4=(rectangle(x=0,y=0,h=155,w=155,stroke="none",fill="yellow")|rotate(15)) | repeat(12,rotate(30))
squares5=rectangle(x=0,y=0,h=194,w=194,stroke="none",fill="#7e8509") | repeat(12,rotate(30))
squares6=(rectangle(x=0,y=0,h=198,w=198,stroke="none",fill="#dbfa41")|rotate(15)) | repeat(12,rotate(30))


c = circle(r=141,fill="#fbfc5a",stroke="tomato",stroke_width=2)
c1=circle(r=110,fill="#ecf7ba",stroke="tomato")

show(c,squares5,squares6,c1,squares4,squares3,pattern,smallballs2,squares2,squares1)
show(flower() | scale(0.8))
f1=flower() | translate(y=210)|scale(0.6)
show(f1 | repeat(12,rotate(30)))