Code
# nallath cheithal nallathi kittum
# happy onam #
bg=circle(r=150,fill="darkgreen",stroke="green")
def out1(x,y,w):
r = rectangle(x,y,w,w,fill="yellow",stroke="red")+rectangle(x,-y,w,w,fill="red",stroke="yellow")
s = rectangle(x=x,y=-8,w=w,h=w,fill="red",stroke="yellow")
r1=r | repeat(60,rotate(6))
return(r1+s)
def out2(x,y,l):
c = color(255, 255, 0,0.89)
r=rectangle(x,y,w=l/2,h=l,fill="#ffb266",stroke="none") + circle(x,y,r=3,fill="yellow")
return(r | repeat(120,rotate(10)))
show(bg,out1(140,10,12.5),
circle(0,0,133.8,fill="#853352"),
out2(126,0,20),
circle(0,0,r=118.4,fill="#3d4c3d"))
def rn1():
c1=circle(70,0,45,fill="#4c0000")
c2=circle(63,0,39.5,fill="#ff2900")
c3=circle(58,0,33,fill="#ff5900",stroke="none")
c7=circle(55,0,28.5,fill="#ffcc00",stroke="none")
c8=circle(51,0,24.5,fill="#fff200",stroke="none")
c4=c1+c2+c3+c7+c8
c5=circle(0,0,64.9,fill="white")
c6=c4|repeat(6,rotate(60))
return(c6+c5)
show(rn1())
def ln1():
c2=circle(0,0,66,fill="#ff2124",stroke="none")
l=line(0,0,64.2,0,stroke="white",stroke_width=2)
l2=l| repeat(48,rotate(8))
c=circle(0,0,58,fill="white")
return(c2+l2+c)
show(ln1())
def ln2():
c=circle(0,0,58,fill="#e0663d")
r=rectangle(w=81.5,h=81.5,fill="#FF0000",stroke="white")
c1=circle(36.5,36.5,1.8,fill="#ff7aab",stroke="#fff5c9")
c2=circle(36.5,-36.5,1.8,fill="#ff7aab",stroke="#fff5c9")
c3=circle(-36.5,36.5,1.8,fill="#ff7aab",stroke="#fff5c9")
c4=circle(-36.5,-36.5,1.8,fill="#ff7aab",stroke="#fff5c9")
c5=c1+c2+c3+c4
s=r+c5
s1=s|repeat(16,rotate(22.5))
return(c+s1)
show(ln2())
def ln3():
c=circle(0,0,40,fill="white")
c1=circle(0,0,35.5)
c2=circle(0,0,30.5)
return(c+c1+c2)
show(ln3())
def ln4():
c=circle(0,0,40,fill="#bd59c9",stroke="none")
c1=circle(0,0,35.5,fill="#ad33e0",stroke="none")
c2=circle(0,0,30.5,fill="#ad33b8",stroke="none")
s = circle(x=26.5, y=0, r=2.5,fill="yellow",stroke="orange")
s1 = s | repeat(5, scale(0.75))
s2 = s1 | repeat(18, rotate(20))
return(c+c1+c2+s2)
show(ln4())
def ln5():
c=circle(0,0,6.7,fill="white",stroke="none")
c1=circle(0,0,3.5,fill="#d40f26",stroke="none")
return(c+c1)
show(ln5())