Pookkalam by Abhijith Ram P

Code

c1 = circle(r=149,fill="#7d0000",stroke_width="1")
show(c1)
s1=ellipse(w=298,fill="#ffe32b",stroke_width="0")|repeat(50,rotate(15))
show(s1)
c2=circle(r=145,fill="white")
show(c2)


red_black=rectangle(x=0, y=0, h=13,w=289,fill="#7d0000",stroke_width="0") | rotate(0)
red = rectangle(x=0, y=0, h=13,w=289,fill="#f50202",stroke_width="0") | rotate(5)
orange = rectangle(x=0, y=0, h=13,w=289,fill="#ff8000",stroke_width="0") | rotate(10)
yellow_orange=rectangle(x=0, y=0, h=13,w=289,fill="#ffbf36",stroke_width="0") | rotate(15)
yellow = rectangle(x=0, y=0, h=13,w=289,fill="#ffde05",stroke_width="0") | rotate(20)
off_white = rectangle(x=0, y=0, h=13,w=289,fill="#fffade",stroke_width="0") | rotate(25)
layer1=combine([red_black+red+orange+yellow_orange+yellow+off_white])|repeat(7,rotate(30))
show(layer1)
full_circle=layer1|repeat(9,scale(0.95)|rotate(4.9))
show(full_circle)

c3 = circle(r=95.6,fill="#ffde05")
show(c3)



flower1 = circle(x=80, y=0, r=8.9,fill="#96004b",stroke_width="0") | repeat(8, rotate(45))

flower2 = circle(x=80, y=0, r=5.9,fill="#e00271",stroke_width="0") | repeat(8, rotate(45))

flower3 = circle(x=80, y=0, r=3.9,fill="#ff198c",stroke_width="0") | repeat(8, rotate(45))

flower4 = circle(x=80, y=0, r=1.9,fill="#ff87c3",stroke_width="0") | repeat(8, rotate(45))

bud1 = ellipse(x=80,w=2,h=8,fill="yellow",stroke_width="0") | repeat(8, rotate(45))

bud2 = ellipse(x=80,w=8,h=2,fill="yellow",stroke_width="0") | repeat(8, rotate(45))

bud3 = ellipse(x=56.5,y=56.5,w=8,h=2,fill="yellow",stroke_width="0") | repeat(8, rotate(45))

bud4 = ellipse(x=56.5,y=-56.5,w=8,h=2,fill="yellow",stroke_width="0") | repeat(8, rotate(45))

dot1 = circle(x=80, y=0, r=1,fill="#f50202",stroke_width="0") | repeat(8, rotate(45))

flower_perimeter=combine([flower1+flower2+flower3+flower4+bud1+bud2+bud3+bud4+dot1])
flower_perimeter_outer=combine([bud1+bud2+bud3+bud4+dot1])




big_flower1 = ellipse(w=180.6,h=78.5,fill="#7d0000",stroke_width="0")|rotate(112.5)

big_flower2 = ellipse(w=180.6,h=78.5,fill="#7d0000",stroke_width="0")|rotate(67.5)

big_flower3 = ellipse(w=180.6,h=78.5,fill="#7d0000",stroke_width="0")|rotate(22.5)

big_flower4 = ellipse(w=180.6,h=78.5,fill="#7d0000",stroke_width="0")|rotate(-22.5)

lower_ellipse=big_flower1+big_flower2+big_flower3+big_flower4
show(lower_ellipse)




sub_lower_ellipse= ellipse(w=153,h=105.5,fill="#ab2626",stroke_width="0")|rotate(112.5)
sub_lower_circle=sub_lower_ellipse|repeat(8,rotate(45))
show(sub_lower_circle)                                          




boundrary_ellipse=ellipse(x="0",y="82.6",h=11,w=70,fill="#ffde05",stroke_width="0")
show(boundrary_ellipse)
boundrary_ellipse_group=boundrary_ellipse|repeat(8,rotate(45))
show(boundrary_ellipse_group)
boundrary_ellipse_dark=ellipse(x="0",y="86",h=8,w=35,fill="#4d3a85",stroke_width="0")
show(boundrary_ellipse_dark)

dark_ellipse_group=boundrary_ellipse_dark|repeat(8,rotate(45))
boundrary_ellipse_dark_sub=ellipse(x="0",y="87",h=5,w=30,fill="#5d4a94",stroke_width="0")
dark_ellipse_group_sub=boundrary_ellipse_dark_sub|repeat(8,rotate(45))
show(dark_ellipse_group)
show(dark_ellipse_group_sub)


boundrary_ellipse_spot=ellipse(x="0",y="81",h=4,w=4,fill="white",stroke_width="0")
bud11 = ellipse(x=80,w=1,h=5,fill="#fffefa",stroke_width="0") | repeat(8, rotate(45))

bud22 = ellipse(x=80,w=5,h=1,fill="#fffefa",stroke_width="0") | repeat(8, rotate(45))

bud33 = ellipse(x=56.5,y=56.5,w=5,h=1,fill="#fffefa",stroke_width="0") | repeat(8, rotate(45))

bud44 = ellipse(x=56.5,y=-56.5,w=5,h=1,fill="#fffefa",stroke_width="0") | repeat(8, rotate(45))

dot11 = circle(x=80, y=0, r=0.5,fill="red",stroke_width="0") | repeat(8, rotate(45))
in_brown=combine([bud11+bud22+bud33+bud44+dot11])|rotate(22.5)
show(in_brown)




dark_ellipse_group_spot=boundrary_ellipse_spot|repeat(8,rotate(45))
dark_ellipse_group_spot_rotated=dark_ellipse_group_spot|rotate(23)





perimeter_line=circle(r=90.6,stroke_width="0.5" )


perimeter_line_yellow=circle(r=89,stroke_width="3",stroke="#7d0000" )
show(perimeter_line_yellow)
show(perimeter_line)

green_inyellow=rectangle(x=0,y=93,w=5,h=4.3,fill="green",stroke_width="0")|repeat(10,rotate(2))
green_inyellow_tilt=green_inyellow|rotate(14)
green_inyellow_group=green_inyellow_tilt|repeat(8,rotate(45))
show(green_inyellow_group)


brown_inyellow=rectangle(x=0,y=98.4,w=5,h=5,fill="#7d0000",stroke_width="0")|rotate(8)|repeat(10,rotate(2))
show(brown_inyellow)
brown_inyellow_group=brown_inyellow|repeat(12,rotate(30))
show(brown_inyellow_group)




inside_red_black=rectangle(x=0, y=0, h=12,w=142,fill="#7d0000",stroke_width="0") | rotate(40)
inside_red = rectangle(x=0, y=0, h=12,w=142,fill="#f50202",stroke_width="0") | rotate(31.4)
inside_orange = rectangle(x=0, y=0, h=12,w=142,fill="#ff8000",stroke_width="0") | rotate(24.8)
inside_yellow_orange=rectangle(x=0, y=0, h=12,w=142,fill="#ffbf36",stroke_width="0") | rotate(18.2)
inside_yellow = rectangle(x=0, y=0, h=12,w=142,fill="#ffde05",stroke_width="0") | rotate(11.6)
inside_off_white = rectangle(x=0, y=0, h=12,w=142,fill="#fff7cc",stroke_width="0") | rotate(5)
layer_all=combine([inside_red_black+inside_red+inside_orange+inside_yellow_orange+inside_yellow+inside_off_white])|repeat(8,rotate(45))
show(layer_all)
outline_layer_all=circle(r=71,stroke="#ffefc4",stroke_width="0.3")
show(outline_layer_all)
background_group=combine([layer_all+outline_layer_all])
show(background_group)
background_group2=background_group|scale(0.9)|rotate(-6.5)
show(background_group2)
background_group3=background_group2|scale(0.9)|rotate(-6.5)
show(background_group3)
background_group4=background_group3|scale(0.9)|rotate(-6.5)
show(background_group4)
background_group5=background_group4|scale(0.9)|rotate(-6.5)
show(background_group5)


inyellow_decor=circle(fill="green",stroke_width=0,x=0,y=78,r=3)

inyellow_group=inyellow_decor|repeat(8,rotate(45))


reddish_perimeter1 = ellipse(w=140.6,h=56,fill="cf048f",stroke_width="0")|repeat(4,rotate(45))
reddish_perimeter_tilt1=reddish_perimeter1|rotate(20)
reddish_perimeter2 = ellipse(w=128.6,h=56,fill="f55fc6",stroke_width="0")|repeat(4,rotate(45))
reddish_perimeter_tilt2=reddish_perimeter2|rotate(20)
show(reddish_perimeter_tilt1)
show(reddish_perimeter_tilt2)





square1 = rectangle(w=100, h=100,fill="#2aa32e",stroke_width="0") | repeat(2, rotate(45))
square11=rectangle(w=90, h=90,fill="#18631b",stroke_width="0") | repeat(2, rotate(45))
rotor1 = rectangle(w=76.8, h=76.8,fill="#fff305",stroke_width="0") | repeat(2, rotate(45))
square2=rotor1|rotate(22.6)
rotor2= rectangle(w=68.8, h=68.8,fill="#ffcd19",stroke_width="0") | repeat(2, rotate(45))
square3=rotor2|rotate(22.6)
squares=combine([square1+square11+square2+square3])|rotate(45)
show(square1,square11)
c_orange = circle(r=48,fill="#ed0000",stroke_width="3" ,stroke="#ba0000")
show(c_orange)

show(square2,square3)


dot2 = circle(x=67, y=0, r=1,fill="f50202",stroke_width="0") | repeat(8, rotate(45))
show(dot2)
dot3 = circle(x=51.1, y=0, r=1,fill="fff305",stroke_width="0") | repeat(8, rotate(45))
dot33=dot3|rotate(22.8)
show(dot33)
flower_round=combine([flower1+flower2+flower3+flower4+bud1+bud2+bud3+bud4+dot1])|scale(0.5)
c4 = circle(r=37,fill="white",stroke_width="0")
show(c4)
c5 = circle(r=37,fill="#fff305",stroke_width="0")
show(c5)

c_shadow = circle(r=37,stroke="#40cf43",stroke_width="0.25")


c6 = circle(r=34,fill="#5d4a94",stroke_width="0")
show(c6)




em1=ellipse(w=68,h=25,stroke_width="0",fill="#8c0000")
em2=ellipse(w=62,h=25,stroke_width="0",fill="#f50202")
em3=ellipse(w=56,h=25,stroke_width="0",fill="#ff8000")
em4=ellipse(w=50,h=25,stroke_width="0",fill="#ffbf36")
em5=ellipse(w=44,h=25,stroke_width="0",fill="#ffde05")
em6=ellipse(w=38,h=25,stroke_width="0",fill="#fff6c4")
inside_gradient=combine([em1+em2+em3+em4+em5+em6])| repeat(8, rotate(45))

full_gradient=inside_gradient|repeat(6,scale(0.59)|rotate(90))


whitegrad = rectangle(w=33, h=33,fill="yellow",stroke_width="0") | repeat(9, rotate(45))
bluegrad1 = rectangle(w=30, h=30,fill="#0047e0",stroke_width="0") | repeat(9, rotate(45))
bluegrad2 = rectangle(w=27, h=27,fill="#2d6ffc",stroke_width="0") | repeat(9, rotate(45))
bluegrad3 = rectangle(w=24, h=24,fill="#8aafff",stroke_width="0") | repeat(9, rotate(45))
bluegrad4 = rectangle(w=21, h=21,fill="#ebf1ff",stroke_width="0") | repeat(9, rotate(45))
grads=combine([whitegrad+bluegrad1+bluegrad2+bluegrad3+bluegrad4]) 



inner_gradient_redblack = rectangle(w=48, h=48,fill="#7d0000",stroke_width="0") | repeat(7, rotate(18))

inner_gradient_red = rectangle(w=42, h=42,fill="#f50202",stroke_width="0") | repeat(7, rotate(18))
inner_red_rotor=inner_gradient_red|rotate(9)
inner_gradient_orange = rectangle(w=37, h=37,fill="#ff8000",stroke_width="0") | repeat(7, rotate(18))
inner_orange_rotor=inner_gradient_orange|rotate(18)
inner_gradient_yelloworange = rectangle(w=32, h=32,fill="#ffbf36",stroke_width="0") | repeat(7, rotate(18))
inner_yelloworange_rotor=inner_gradient_yelloworange|rotate(27)
inner_gradient_yellow= rectangle(w=28, h=28,fill="#ffde05",stroke_width="0") | repeat(7, rotate(18))
inner_yellow_rotor=inner_gradient_yellow|rotate(36)
inner_gradient_offwhite= rectangle(w=24, h=24,fill="#fffefa",stroke_width="0") | repeat(7, rotate(18))
inner_offwhite_rotor=inner_gradient_offwhite|rotate(45)

flowerbed=inner_gradient_redblack+inner_gradient_orange+inner_gradient_yelloworange+inner_gradient_yellow
flowerbed_rotor=combine([inner_gradient_redblack+inner_red_rotor+inner_orange_rotor+inner_yelloworange_rotor+inner_yellow_rotor+inner_offwhite_rotor])
show(flowerbed_rotor)
inner_gradient_blue= rectangle(w=18.5, h=18.5,fill="#ab36d9",stroke_width="0") | repeat(7, rotate(18))
inner_blue_rotor=inner_gradient_blue|rotate(54)

line1=line(x1=0,y1=0,x2=18,y2=0,stroke="#ffde05")|rotate(10)|repeat(20,rotate(18))
show(line1)

show(inner_blue_rotor)
line2=line(x1=0,y1=0,x2=13,y2=0,stroke="#fffefa")|rotate(0)|repeat(20,rotate(18))
show(line2)



c_outline1 = circle(r=10,fill="#f50202",stroke_width="0")
show(c_outline1)
c_outline2 = circle(r=8,fill="#fff3a6",stroke_width="0")
show(c_outline2)

inside_ellipse1=ellipse(x=0,y=0,w=20,h=5,fill="#009105",stroke_width="0")|repeat(8,rotate(45))

inside_ellipse2=ellipse(x=0,y=0,w=10,h=2.5,fill="#f2ff00",stroke_width="0")|repeat(8,rotate(45))

inside_ellipse3=ellipse(x=0,y=0,w=5,h=1,fill="#e3d400",stroke_width="0")|repeat(8,rotate(45))

show(flower_round)


c_center=circle(x=0,y=0,r=1,fill="#ff3300",stroke_width="0")
show(c_center)
full_gradient_small=full_gradient|scale(0.2)
show(full_gradient_small)