Pookkalam by Allen Anand

Code

background= rectangle(w=300,h=300,fill="white",srtoke="none")
show(background)
outterred= rectangle(w=220,h=220,fill="red",stroke_width=0)|repeat(20,rotate(57))
show(outterred)
outerwhite= rectangle(w=210,h=210,fill="MidnightBlue",stroke_width=0)|repeat(20,rotate(57))
show(outerwhite)
bgpetals1= circle(r=135,stroke="none",fill="DarkMagenta")
show(bgpetals1) 
bgpetals2 = circle(r=130,stroke="none",fill="DarkMagenta")
show(bgpetals2)  
redpetalsouter=ellipse(w = 30, h = 25/3, fill = "red",stroke="none")| translate(x=83,y=90)| repeat(72, rotate(175))
show(redpetalsouter)
whitepetalsouter=ellipse(w = 40, h = 40/4, fill = "white",stroke="none")|translate(x=83,y=90)| repeat(71, rotate(50))
show(whitepetalsouter)

whitecircle1 = circle(r=110,stroke="none",fill="white")
show(whitecircle1) 
whitecircle1_petals1=ellipse(w = 220, h = 220/3, fill = "HotPink",stroke="white")|repeat(6, rotate(100))
show(whitecircle1_petals1)
whitecircle1_petals2=ellipse(w = 220, h = 220/3, fill = "HotPink",stroke="white")|repeat(5, rotate(70))
show(whitecircle1_petals2)
whitecircle1_petals3=ellipse(w = 220, h = 220/3, fill = "HotPink",stroke="white")|repeat(5, rotate(80))
show(whitecircle1_petals3)
whitecircle2 = circle(r=100,stroke="none",fill="white")
show(whitecircle2) 
whitecircle2_petals1=ellipse(w = 200, h = 200/4, fill = "red",stroke="none")|repeat(5, rotate(670))
show(whitecircle2_petals1)
whitecircle2_petals2=ellipse(w = 200, h = 200/4, fill = "#FFFF99",stroke="none")|repeat(5, rotate(60))
show(whitecircle2_petals2)
whitecircle2_petals3=ellipse(w = 200, h = 200/4, fill = "HotPink",stroke="red")|repeat(5, rotate(50))
show(whitecircle2_petals3)
whitecircle3 = circle(r=75,stroke="none",fill="white")
show(whitecircle3) 

whitecircle3_petals1=ellipse(w = 200, h = 200/4, fill = "red",stroke="white")|repeat(5, rotate(75))
show(whitecircle3_petals1| scale(0.9))
whitecircle3_petals2=ellipse(w = 200, h = 200/4, fill = "#FFFF99",stroke="red",stroke_width=0.5)|repeat(5, rotate(37))
show(whitecircle3_petals2 | scale(0.9))
whitecircle3_petals3=ellipse(w = 200, h = 200/4, fill = "HotPink",stroke="white",stroke_width=0.5)|repeat(5, rotate(68))
show(whitecircle3_petals3 | scale(0.9))





redpetals= ellipse(w=90,h=90/3,fill="Yellow",stroke_width=35,stroke="MidnightBlue")|translate(x=30,y=30)
show(redpetals | scale(0.60)|repeat(90,rotate(48)))
redpetals2= ellipse(w=100,h=90/3,fill="MidnightBlue",stroke_width=0,stroke="white")
show(redpetals2| scale(1.5)|repeat(11,rotate(69)))
whiteflower= ellipse(w=50,h=50/3,fill="white", stroke_width=1,stroke="Fuchsia")|translate(x=30,y=30)
show(whiteflower | repeat(40,rotate(189)))
show(redpetals | scale(0.9)|repeat(30,rotate(-30)))
whiteflower2= ellipse(w=50,h=50/3,fill="MediumVioletRed", stroke_width=1,stroke="Fuchsia")|translate(x=30,y=30)
show(whiteflower2|scale(0.8) | repeat(40,rotate(189)))
smallwhite= rectangle(w=75,h=100,fill="white",stroke_width=0)|repeat(25,rotate(57)) | scale(0.69)
show(smallwhite | scale(0.8))


  
 

   
bluepetals=ellipse(x=25,y=0,w=42,h=40/3,fill="RoyalBlue",stroke_width=0) | repeat(25,rotate(30))  
show(bluepetals | scale(0.60))
blackbuds = circle(r=6,x=13.5,y=13.5, fill = "black")| repeat(10,rotate(45))
show(blackbuds)
show(circle(x=0,y=0,r=25,fill="DeepPink",stroke_width=1)| scale(0.69))
leaf1= ellipse(w = 50, h = 59/3, fill = "LimeGreen")|repeat(5, rotate(49)) | scale(0.57)
show(leaf1) 
yellowflower= ellipse(w = 50, h = 59/3, fill = "Gold")|repeat(5, rotate(60)) | scale(0.6)
show(yellowflower)  


smallestflower= ellipse(w = 25, h = 30/4, fill = "white",stroke="none")|repeat(5, rotate(35))  | scale(0.77)
show(smallestflower)  
show(circle(r=4,fill="RoyalBlue",stroke_width=0))