Pookkalam by Harikrishnan V

Code

#Outer_shapes

c1=circle(r=150, fill="#050206" , stroke="none")
shape1 = rectangle(w=210, h=210, fill="#DE0519", stroke="none") | repeat(9, rotate(10))
shape2 = rectangle(w=194, h=194, fill="#FF6F06", stroke="none")|rotate(5) | repeat(9, rotate(10))
shape3 = rectangle(w=179, h=179, fill="yellow", stroke="none") | repeat(9, rotate(10))
shape4 = rectangle(w=165, h=165, fill="white", stroke="none")|rotate(5) | repeat(9, rotate(10))

#Points for hexagons

#Hexahon1
h1=point(x=38,y=90)
h2=point(x=-38,y=90)
h3=point(x=-90,y=38)
h4=point(x=-90,y=-38)
h5=point(x=-38,y=-90)
h6=point(x=38,y=-90)
h7=point(x=90,y=-38)
h8=point(x=90,y=38)

#Hexagon2
h21=point(x=30,y=72.5)
h22=point(x=-30,y=72.5)
h23=point(x=-72.5,y=30)
h24=point(x=-72.5,y=-30)
h25=point(x=-30,y=-72.5)
h26=point(x=30,y=-72.5)
h27=point(x=72.5,y=-30)
h28=point(x=72.5,y=30)

#Hexagon3
h31=point(x=21,y=50)
h32=point(x=-21,y=50)
h33=point(x=-50,y=21)
h34=point(x=-50,y=-21)
h35=point(x=-21,y=-50)
h36=point(x=21,y=-50)
h37=point(x=50,y=-21)
h38=point(x=50,y=21)

#Middle_shapes

c2=circle(r=105,fill="#050206",stroke="none")

r1=rectangle(w=180,h=100,stroke="none",fill="#F2FFF4")|repeat(2,rotate(90))
r2=rectangle(w=180,h=100,stroke="none",fill="#B60F41")|rotate(45)|repeat(2,rotate(90))

square_1=rectangle(w=145,h=145,stroke="none",fill="#F2FFF4")
square_2=rectangle(w=145,h=145,stroke="none",fill="#B60F41")|rotate(45)

hexagon1 = polygon([h1,h2,h3,h4,h5,h6,h7,h8],fill="#023D0A",stroke="none")

c3=circle(r=91,fill="#E3BD06",stroke="none")

r3=rectangle(w=145,h=100,stroke="none",fill="#F2FFF4")|repeat(2,rotate(90))
r4=rectangle(w=145,h=100,stroke="none",fill="#B60F41")|rotate(45)|repeat(2,rotate(90))

c4=circle(r=72.4,fill="#E3BD06",stroke="none")

hexagon2 = polygon([h21,h22,h23,h24,h25,h26,h27,h28],fill="#023D0A",stroke="none")

square_3=rectangle(w=100,h=100,stroke="none",fill="#F2FFF4")
square_4=rectangle(w=100,h=100,stroke="none",fill="#B60F41")|rotate(45)

hexagon3 = polygon([h31,h32,h33,h34,h35,h36,h37,h38],fill="#023D0A",stroke="none")

c5=circle(r=45,fill="#EEECE6",stroke="none")

#Inner_Shapes

#Laptop

l1 = line(x1=35,y1=-19,x2=-35,y2=-19,color="#B5B5B3",stroke="#B5B5B3",stroke_width=3)
l2 = line(x1=32,y1=-21,x2=-32,y2=-21,color="#B5B5B3",stroke="#B5B5B3",stroke_width=2)
l3 = line(x1=30,y1=-17,x2=-30,y2=-17,color="#000000",stroke="#000000",stroke_width=3)
l4 = line(x1=29,y1=-16,x2=29,y2=23,color="#000000",stroke="#000000",stroke_width=2)
l5 = line(x1=-29,y1=-16,x2=-29,y2=23,color="#000000",stroke="#000000",stroke_width=2)
l6 = line(x1=30,y1=23,x2=-30,y2=23,color="#000000",stroke="#000000",stroke_width=3)

#Tinkerhub Logo

rec1 = rectangle(x=-6.2,y=14,w=20,h=6,fill="#00D3EE",stroke="none")
rec2 = rectangle(x=10,y=14,w=5,h=6,fill="#063BE8",stroke="none")
rec3 = rectangle(x=-2,y=4,w=29,h=6,fill="#FFB900",stroke="none")
rec4 = rectangle(x=-9.7,y=-6,w=14,h=6,fill="#FF1300",stroke="none")
rec5 = rectangle(x=3,y=-6,w=4,h=6,fill="#6BD500",stroke="none")
rec6 = rectangle(x=10.4,y=-6,w=4,h=6,fill="#153F40",stroke="none")

#Show all shapes
show(c1,shape1,shape2,shape3,shape4,c2,r1,r2,square_1,square_2,hexagon1,c3,r3,r4,hexagon2,c4,square_3,square_4,hexagon3,c5,l1,l2,l3,l4,l5,l6,rec1,rec2,rec3,rec4,rec5,rec6)

#Thank you Tinkerhub for giving an oppurtunity to participate events like this :)