Pookkalam by Shreya K

Code

cen=circle(r=15,fill="#008000",stroke="none")
show(cen)

c=circle(r=141,fill="#008000")
show(c)
p=circle(x=110,y=0,fill="maroon",r=38,stroke="none")+circle(x=105,y=0,fill="#ff4500",r=34,stroke="none")+circle(x=100,y=0,fill="#ffbf00",r=30,stroke="none")+circle(x=90,y=0,fill="yellow",r=35,stroke="none")|repeat(20,rotate(30))
show(p)

r=rectangle(x=144,y=0,fill="#ff8c00",w=6,h=6,stroke="#ff8c00")|repeat(40,rotate(9))
r1=rectangle(x=144,y=5,fill="#ffd800",w=6,h=6,stroke="#ffd800")|repeat(40,rotate(9))
r2=rectangle(x=144,y=10,fill="#e60026",w=6,h=6,stroke="#e60026")|repeat(40,rotate(9))
r3=rectangle(x=144,y=15,fill="#da70d6",w=6,h=6,stroke="#da70d6")|repeat(40,rotate(9))
r4=rectangle(x=144,y=20,fill="white",w=6,h=6,stroke="white")|repeat(40,rotate(9))
show(r,r1,r2,r3,r4)
oc=circle(r=149,stroke="#006400",stroke_width=3)
oc2=circle(r=142,stroke="#006400",stroke_width=3)
show(oc,oc2)
r4=rectangle(w=146,h=146,fill="#da70d6",stroke="none")|repeat(4,rotate(45))
r3=rectangle(w=146,h=146,fill="#a50b5e",stroke="none",a=0.5)
r5=rectangle(w=144,h=144,fill="#white",stroke="none")|repeat(4,rotate(45))
m = rectangle(w=211,h=211,fill="maroon",stroke="maroon")|repeat(30,rotate(50))|scale(0.8)
r = rectangle(w=195,h=195,fill="red",stroke="red")|rotate(15)|repeat(30,rotate(50))|scale(0.8)
o = rectangle(w=179,h=179,fill="orange",stroke="orange")|rotate(20)|repeat(30,rotate(50))|scale(0.8)
y = rectangle(w=165,h=165,fill="yellow",stroke="yellow")|rotate(15)|repeat(30,rotate(50))|scale(0.8)
w = rectangle(w=152,h=152,fill="white",stroke="white")|rotate(20)|repeat(30,rotate(50))|scale(0.8)
show(m,r,o,y,w,r4,r3,r5)
c=color(r=0,g=100,b=0,a=1)
c1=color(r=255,g=255,b=255,a=1)
re=ellipse(w=10,h=200,fill=c,stroke="none")|repeat(4,rotate(90))
re1=ellipse(w=50,h=200,fill=c1,stroke="none")|repeat(4,rotate(90))
re2=ellipse(w=10,h=200,fill=c1,stroke="none")|repeat(4,rotate(135))
re3=ellipse(w=50,h=200,fill=c,stroke="none")|repeat(4,rotate(135))
show(re3,re1,re2,re)
rcco=color(r=251,g=23,b=172,a=0.8)
rcircle=ellipse(x=64,y=0,w=20,h=30,fill=rcco,stroke="none")|repeat(12,rotate(30))
mcircle=circle(r=73,stroke="#fb17ac",stroke_width=10)
icircle=circle(r=73,fill="#006400",stroke="none")
show(mcircle,icircle,rcircle)
r5=rectangle(w=100,h=100,fill="maroon",stroke="none")
r6=r5|repeat(4,rotate(45))
show(r6)
sr=rectangle(x=30,y=30,w=30,h=30,fill="orange",stroke="none")|repeat(8,rotate(45))
sr1=rectangle(x=30,y=30,w=20,h=20,fill="yellow",stroke="none")|repeat(8,rotate(45))
sr2=rectangle(x=30,y=30,w=10,h=10,fill="white",stroke="none")|repeat(8,rotate(45))
show(sr,sr1,sr2)
#star
cstr=color(r=242,g=22,b=166,a=0.5)
p1=point(x=-20,y=20)
p2=point(x=-20,y=50)
p3=point(x=0,y=20)
p4=point(x=20,y=50)
p5=point(x=20,y=20)
p6=point(x=50,y=20)
p7=point(x=20,y=0)
p8=point(x=50,y=-20)
p9=point(x=20,y=-20)
p10=point(x=20,y=-50)
p11=point(x=0,y=-20)
p12=point(x=-20,y=-50)
p13=point(x=-20,y=-20)
p14=point(x=-50,y=-20)
p15=point(x=-20,y=0)
p16=point(x=-50,y=20)
star=polygon([p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16],fill=cstr,stroke="none")
show(star)

#centre circle
cen=circle(r=15,fill="yellow",stroke="none")+circle(r=5,fill="#fffdd0",stroke="none")
show(cen)
#centre star
s1=point(x=-5,y=5)
s2=point(x=-20,y=5)
s3=point(x=-20,y=20)
s4=point(x=-5,y=20)
ps=polygon([s1,s2,s3,s4],fill="#FF7216",stroke="none")|repeat(15,rotate(30))
show(ps)
psc=circle(r=20,stroke="green",stroke_width=3)
psc2=circle(r=17,stroke="#8fe32e",stroke_width=3)
psc1=circle(r=15,stroke="green",stroke_width=3)
show(psc,psc2,psc1)
ss1=point(x=-22,y=22)
ss2=point(x=-26,y=22)
ss3=point(x=-26,y=26)
ss4=point(x=-22,y=26)
pss=polygon([ss1,ss2,ss3,ss4],fill="red",stroke="none")|repeat(8,rotate(45))
show(pss)