Pookkalam by AFLAH V K

Code

fill1 = color(r= 225,b=0,g=0,a=0.2)
#center

petal = circle(r = 5,stroke_width = 2,fill = 'red') | repeat(2,scale(0.3))
div = line(x1 = 5, y1 = 0, x2 = 25, y2 = 0) | repeat(10, rotate(36))
#first layer

first_layer1 = ellipse(w = 10, h = 50,fill = 'red',stroke = 'none') | rotate(10) | repeat(18, rotate(20)) 
first_layer_1inner =ellipse(w = 10, h = 50,fill = 'yellow',stroke = 'none') | rotate(10) | repeat(18, rotate(20)) | scale(0.8)
first_layer2 = circle(r = 25,fill = 'orange')
#second layer

second_layer1 = ellipse(w = 20, h = 70,fill = 'black',stroke = 'yellow') | rotate(20) | repeat(10,rotate(36))
second_layeru = ellipse(w = 20, h = 70,fill='red',stroke = "none") | repeat(10,rotate(36))
#Third layer

third_layer1 = ellipse(x = 0, y = 40 , w = 20, h = 70,fill='red',stroke = 'none') | repeat(10,rotate(36))
third_up = rectangle(w = 110,h = 110,fill="maroon") | rotate(45) | repeat(5,rotate(72))
third_in = ellipse( w = 30, h = 125,fill = '#F1C40F') | rotate(90) | repeat(10, rotate(36))
third_mid = rectangle(w = 15, h = 15,x=35,y=35,fill = 'black',stroke = 'yellow') | rotate(45) | repeat(3,scale(0.8)) |repeat(10,rotate(36))
third_midup = circle(r = 10,x = 0, y = 75,fill = 'red',stroke = 'none') | repeat(10,rotate(36))
third_midmid = rectangle(w = 10, h = 10,x=58,y=58,fill = "red",stroke = 'none') | rotate(45) |repeat(10,rotate(36))
third_midmid2 = rectangle(w = 10, h = 10,x=53,y=53,fill = "gold",stroke = 'none') | rotate(45) |repeat(10,rotate(36))
#Forth layer
forth_layer1 = ellipse(x = 50, y = 10, w=100,h = 30 ,fill = "#FDFD79", stroke = 'none') | rotate(65) | repeat(10, rotate(36))
forth_layer2 = ellipse(x = 0, y = 60,w = 40,h =120 ,stroke = 'none',fill = '#F6E002') | repeat(10,rotate(36))
forth_1top = rectangle(x = 82,y = 82, h = 10,w = 10,stroke = 'none',fill = '#F6E002') | rotate(45) | repeat(10, rotate(36))
forthl1 = circle(x = -5, y = 105, r=5,fill = 'black',stroke = 'none') + circle(x = 5, y = 105, r=5,stroke = 'none',fill = 'black') | repeat(10,rotate(36))
forthl2 = rectangle(x=71,y=71,h = 10, w = 10,fill = "black",stroke='none') | rotate(45) | repeat(10,rotate(36))

forth_le = line(x1 = 0,y1 = 0,x2 = 0, y2 = 122,stroke = "black") | repeat(10,rotate(36))
#cover
forth_layeru = ellipse(x = 0, y = 60,w = 60,h =140 ,stroke = 'none',fill='#FE0101') | repeat(10,rotate(36))
forth_back = circle(r = 135,fill = '#124B00',stroke = 'gold', stroke_width = 10)
forthc = circle(x =50 , y = 125, r = 4,fill = "#CD0000") | repeat(10,rotate(36))
forth_1topu = rectangle(x = 90,y = 90, h = 10,w = 10,stroke = 'none',fill = '#FE0101') | rotate(45) | repeat(10, rotate(36))

outer1 = ellipse(w = 40, h = 20,fill = fill1) | repeat(15,rotate(30)) | translate(x = 130,y = 0) | repeat(60,rotate(15))
show(outer1,forth_back,forthc,forth_layeru,forth_1topu,forth_1top,forth_layer2,forth_le,forthl1,forthl2,forth_layer1,third_up,third_in,third_layer1,second_layeru,second_layer1,first_layer2,first_layer1,first_layer_1inner,petal,div,third_mid,third_midup,third_midmid,third_midmid2)