Pookkalam by muhammed irfan

Code

c = circle()
show(c)
r=rectangle(h=400,w=400,fill="#ffffeF")
show (r)
k1 = rectangle(w=210, h=210, fill="#a2a2a2",stroke="none") | repeat(12, rotate(60))
k1 = k1 | rotate (45)
show(k1) 
k2 = rectangle(w=206, h=206, fill="#777777",stroke="none") | repeat(12, rotate(60))
k2 = k2 | rotate (45)
show(k2)
k3 = rectangle(w=202, h=202, fill="#444444",stroke="none") | repeat(12, rotate(60))
k3 = k3 | rotate (45)
show(k3) 
k4 = rectangle(w=195, h=195, fill="#880000",stroke="none") | repeat(12, rotate(60))
k4 = k4 | rotate (45)
show(k4)
j1 = rectangle(w=210, h=210, fill="#a2a2a2",stroke="none") | repeat(12, rotate(60))
j1 = j1 | rotate (90)
show(j1) 
j2 = rectangle(w=206, h=206, fill="#777777",stroke="none") | repeat(12, rotate(60))
j2 = j2 | rotate (90)
show(j2)
j3 = rectangle(w=202, h=202, fill="#444444",stroke="none") | repeat(12, rotate(60))
j3 = j3 | rotate (90)
show(j3) 
j4 = rectangle(w=195, h=195, fill="#00ffFF",stroke="none") | repeat(12, rotate(60))
j4 = j4 | rotate (90)
show(j4)
j5 = rectangle(w=190, h=190, fill="#0000dd",stroke="none") | repeat(12, rotate(60))
j5 = j5 | rotate (90)
show(j5)
z1=ellipse(y=10,w=25,h=260,stroke="#0000DD",stroke_width = 0.5,fill="#002200")
show(z1| repeat(60,rotate(6)))
z=circle(fill="#606060",stroke="green")
show(z)
c1 = circle(r=0)
for i in range(10):
    f = color(r=175,g=135,b=0)
    c1 += circle(r=i, stroke=f) | translate(x=i+100, y=i-50)

c2 = circle(r=0)
for i in range(10):
    f = color(b=10+i,g=i,r=10-i)
    c2 += circle(r=i/12, stroke=f) | translate(x=i, y=i)
    
show(c1|repeat(60,rotate(6)))
b=c2|repeat(12,rotate(30))|translate(x=102, y=i)
show(b|repeat(60,rotate(6)))
c3 = circle(r=0)
for i in range(60):
    f = color(b=0,g=200-i-i,r=80)
    c3 += circle(r=10, stroke=f) | translate(x=i, y=i)

show(c3|repeat(60,rotate(6)))    
d2=ellipse(y=10,w=5,h=50,stroke="#0000DD",stroke_width = 0.5,fill="#002200")
d1=ellipse(y=10,w=5,h=80,stroke="#0000DD",stroke_width = 0.5,fill="#FFFFFF")
p0 = circle(r=8,fill="#FFFFFF")
p1 = ellipse(y=20,w=5,h=85,stroke="#AFDF00",stroke_width = 0.8,fill="#553333")
p2 = ellipse(y=10,w=5,h=12.5,stroke="#FFFFFF",stroke_width = 0.5,fill="#000000")
p3 = (p1+d1+d2| repeat(7,rotate(51.4)))
show(p0,p1,p3)
show(p2 | repeat(20,rotate(30)))


mid=color(r=255,g=0,b=0,a=0.3)
y1=circle(r=9,stroke="none",fill=mid)
show(y1)
mid=color(r=255,g=100,b=0,a=0.5)
y2=circle(r=7,stroke="none",fill=mid)
show(y2)
mid=color(r=255,g=200,b=0,a=0.65)
y3=circle(r=5,stroke="none",fill=mid)
show(y3)
mid=color(r=255,g=255,b=255,a=0.9)
y4=circle(r=1.5,stroke="none",fill=mid)
show(y4)
kj=line(x1=0,y1=0,x2=0,y2=0)
for i in range(1,8):
    f=color(r=255,g=255,b=255,a=1-(0.1*i))
    kj+=line(x1=0,y1=0,x2=i,y2=i,stroke=f)

show(kj|repeat(20,rotate(35)))