Pookkalam by Vyshnav C J

Code

show(circle(r=150,fill="#f7ce00",stroke="#2d9e14",stroke_width=4))
list1 =["#560709","#600454","#8d129b"]
j=1
for i in list1:
    ellipse1 = ellipse(w= 300,h = 200,fill = i) | rotate(45) |scale(j)
    ellipse2 = ellipse(w= 300,h = 200,fill = i) | rotate(135)|scale(j)
    j = j-.1
    show(ellipse1,ellipse2)
square1 = rectangle(w=210,h =210,fill="#fc142b",stroke="#590514",stroke_width=3) | rotate(45)
sq2 = rectangle(w=210*.9,h =210*.9,fill="#fcfc00",stroke="#590514",stroke_width=3) | rotate(45)
show(square1,sq2)

    
sq = square1 | rotate(45) | scale(.77)
show(sq)
show(circle(r = 106,stroke="#02701a",stroke_width=3))
show(rectangle(w = 149.5,h =149.5,fill="#e5502b")| repeat(20,rotate(25)))
show(rectangle(w = 149.5,h =149.5,fill="#f7e34a")| repeat(20,rotate(20)))
show(rectangle(w = 149.5,h =149.5,fill = "#9f28ba",stroke ="none")| rotate(45))
flower1 = (ellipse(w = 30, h = 10,fill="#f4d90c") | repeat(6,rotate(45))| translate(y =75))+circle(x = 0 ,y = 75,r = 10,fill ="red")
circle3 = flower1 | scale(y = -1)
circle4 = flower1 |  translate (x =-75,y =-75)
circle5 = flower1 |  translate (x =-75,y =-75) | scale(x = -1)
combo= combine([circle3,circle4,circle5,flower1])
show(combo)
show(rectangle(w = 150,h =150,fill = "#9f28ba",stroke="none"))
show(combo| rotate(45))
def square(color, side):
    return rectangle(w=side, h=side, fill=color, stroke='none') | scale(.52)
white_layer = square(side=212.5,color='#a92822') | repeat(10,  rotate(10)) 

yellow_layer = square(side=196, color='#F8E63D') | rotate(5) | repeat(10,  rotate(10)) 

dark_yellow_layer = square(side=182, color='#E3BD36') | repeat(10,  rotate(10)) 

orange_layer = square(side=168, color='#F36636') | rotate(5) | repeat(10,  rotate(10)) 

red_layer = square(side=155, color='#a92822')  | repeat(10,  rotate(10))

show(white_layer,yellow_layer, dark_yellow_layer, orange_layer,red_layer)
circle1 = circle(r = 50,fill="green")
c = circle(r = 50*.9,fill = "red")
show(circle1,c)
show(rectangle(w=65,h=65,fill = "#fcfc00",stroke="none")|rotate(45))
p1 = point(x = -75,y=75)
p2 = point(x = 0,y=25)
p4 = point(x = 25 ,y=0)
p6 = point(x = 0, y =-25)
p5 = point(x = 75 ,y=-75)
p7 = point(x =-75  ,y=-75)
p8 = point(x = -25,y=0)
p3 = point(x=75,y =75)
shape = polygon([p1,p2,p3,p4,p5,p6,p7,p8],fill = "pink")
show(shape|scale(.46))
ellip = ellipse(x = 20,y = 0,w = 28,h = 20,fill = "black")|repeat(8,rotate(45))
show(ellip)
show(circle(r=20,fill="white"))
ellip2 = ellipse(x = 10,y = 0,w = 20,h = 10,fill = "red")|repeat(10,rotate(45))|scale(.75)
show(ellip2)
show(circle(r=5,fill="green"))