Pookkalam by Joseph J Parayil

Code

#POOKALAM

#OUTER
outermost= circle(r=150,fill="#800080",stroke="#228b22")
f1 = ellipse(h= 70, w=35,fill="white", stroke="yellow")
f2 = f1 | rotate(45)
f3 = f1 | rotate(90)
f4 = f1 | rotate(135)
f5 = ellipse(x=20, y=0, w=20 ,h=12, fill= "#d95471", stroke ="red", stroke_width = 3) | repeat(9, rotate(45))
f6 = ellipse(x=12, y=0, w=20 ,h=15, fill= "#FFA4B2", stroke = "yellow") | repeat(9, rotate(45))
flower=combine([f1,f2,f3,f4,f5,f6])|translate(x=100,y=240)|scale(0.5)|repeat(8,rotate(45))
c1=ellipse(h=199,w=25,fill="#228b22",stroke="#DA70D6")|repeat(12,rotate(30))
petal=ellipse(h=298,w=100,fill="#FDDA0D",stroke="white",stroke_width="4")|repeat(8,rotate(45))


outer1=circle(r=103,fill="white",stroke="#800080",stroke_width="7")

mid=rectangle(h=120,w=120,fill="#FFDAB9",stroke="none")|repeat(3,rotate(30))
mid1=rectangle(h=130,w=130,fill="#F08080",stroke="none")|repeat(3,rotate(30))
mid2=rectangle(h=140,w=140,fill="#DC143C",stroke="none")|repeat(3,rotate(30))
mid3=ellipse(h=160,w=30,fill="red",stroke="none")|rotate(15)|repeat(6,rotate(30))

inner=circle(r=70,fill="#b22222",stroke="white",stroke_width="7")
inner2 = rectangle(h=100, w=100, fill='#e3256b',stroke="#800000") | repeat(28, rotate(5))

inpetal=ellipse(h=30,w=6,x=0,y=40,fill="#daa520",stroke="none")| repeat(18, rotate(20))
inpetal1=ellipse(w=30,h=6,y=0,x=-40,fill="white",stroke="none")| repeat(18, rotate(20))
in1 = circle(r=4, fill='#E6E6FA')
in2 = circle(r=8, fill='yellow', stroke_width=2)
in3 = ellipse(h=10, w=40, fill='#DB7093') | repeat(6, rotate(30))
in4 = ellipse(h=10 ,w=60, fill='white') | repeat(6, rotate(30))
inner1=combine([in4,in3,in2,in1])|scale(0.65)

incircle=circle(r=30,fill="#8b4513",stroke="#800000")
pookalam=combine([outermost,petal,flower,outer1,c1,mid2,mid1,mid,mid3,inner,inner2,incircle,inpetal,inpetal1,inner1])|scale(0.65)|translate(y=15)

#TABLET
tab1=rectangle(w=230, h=300, fill="black")
tab2=rectangle(w=210, h=260, fill="white")
volume=rectangle(w=2, h=30,x=116,y=90,fill="black",stroke="none")
power=rectangle(w=2, h=10,x=116,y=50,fill="black",stroke="none")
button=circle(r=7, y=-140, fill="white")
c2=circle(r=3, y=140,x=10, fill="white")
c3=circle(r=1.5,y=140,x=-10,fill="white")


#APPS
#WHATSAPP
w=circle(r=33,fill="white",stroke="none")
c=circle(r=25,fill="#4fce5d",stroke="none")
r=rectangle(h=23,w=18,x=-12.6,y=-12.4,fill="#4fce5d",stroke="none")
ph=ellipse(h=30,w=15,fill="white",stroke="none")
ph1=circle(r=10,fill="#4fce5d",stroke="none")|translate(x=8)
ph2=ellipse(h=9,w=12,fill="white",stroke="none")|translate(x=-3,y=13)|rotate(-27)
ph3=ph2|scale(y=-1)
phone=combine([ph,ph1,ph2,ph3])|rotate(45)|translate(x=-2,y=-2)
whatsapp=combine([w,r,c,phone])|scale(0.5)|translate(x=-76.75,y=-110)


#YOUTUBE
p1 = point(x=-5, y=7)
p2 = point(x=-5, y=-7)
p3 = point(x=7, y=0)
shape = polygon([p1, p2, p3],fill="white",stroke="none")
rec=rectangle(h=35,w=55,fill="red",stroke="none")
youtube=combine([rec,shape])|scale(0.6)|translate(x=-28,y=-110)

#ZOOM
z=circle(r=33,fill="#2d8cff",stroke="none")
zo=rectangle(h=22,w=32,fill="white",x=-5,stroke="none")

p1 = point(x=12.25, y=5)
p2 = point(x=12.25, y=-5)
p3 = point(x=21.25, y=11)
p4 = point(x=21.25,y=-11)
shape = polygon([p1, p2, p4,p3],fill="white",stroke="none")
zoom=combine([z,zo,shape])|scale(0.46)|translate(x=28.5,y=-110)

#NETFLIX
n=rectangle(h=50,w=50,fill="black")|scale(0.9)
n1=rectangle(h=30,w=7,fill="#e50914")|rotate(20)
n2=rectangle(h=29,w=7,fill="#b81d24",stroke="none")|translate(x=7)
n3=n2|scale(x=-1)
netflix=combine([n,n1,n2,n3])|scale(0.60)|translate(x=76.75,y=-110)

show(tab1,tab2,volume,power,button,c2,c3,pookalam,whatsapp,youtube,zoom,netflix)