Code
# your code here
inner = circle(r=98.5, fill="#085e05",stroke='none')
c1=circle(r=25,fill='#52A100',stroke='#52A136')
c2=circle(r=20,fill='#f4a5b1',stroke='#52A136')#change this to lotus
c=combine([c1,c2])
ry1=rectangle(h=130,w=130,fill='#f7d022',stroke='#f7d022')
ry2=rectangle(h=70,w=175,fill='#f7d022',stroke='#f7d022')
ry3= ry2 | rotate(90)
rr1=rectangle(h=130,w=130,fill='#fc5f16',stroke='#fc5f16')
rr2=rectangle(h=70,w=175,fill='#fc5f16',stroke='#fc5f16')
rr3= rr2 | rotate(90)
rredc=combine([rr1,rr2,rr3])
ryell=combine([ry1,ry2,ry3])
# show(inner,ryell)
rred=rredc | rotate(135)
pq=combine([ryell,rred])
ps=pq | repeat(50,rotate(20)|scale(0.92))
main = circle(r=150, fill="#085e05", stroke="none")
show(main)
def square(color, side):
return rectangle(w=side, h=side, fill=color, stroke='none')
whtsq = square(side=212,color='#fcf5d9') | repeat(10, rotate(10))
ylwsq = square(side=200,color="#f7d022") | rotate(16) | repeat(10, rotate(10))
orgsq = square(side=188,color="#fc5f16") | rotate(22) | repeat(10, rotate(10))
white_layer = square(side=136,color='#FEFDF3') | rotate(16) | repeat(10, rotate(10))
pink_layer = square(side=128,color='#E65A99') | rotate(22) | repeat(10, rotate(10))
red_layer = square(side=120,color='#AE2924') | rotate(28) | repeat(10, rotate(10))
layer= combine([white_layer,pink_layer,red_layer]) | scale(1.3)
show(whtsq,ylwsq,orgsq,layer)
show(inner,ps)
inner2 = circle(r=50, fill="purple",stroke="purple")
show(inner2)
c3=ellipse(h=200,w=5,fill="orange",stroke="none")|repeat(200,rotate(200))
c4=ellipse(h=200,w=11,fill="pink",stroke="none")|repeat(200,rotate(200))
c5=ellipse(h=200,w=20,fill="red",stroke="none")|repeat(200,rotate(200))
c6=ellipse(h=200,w=29,fill="#FF1493",stroke="none")|repeat(200,rotate(200))
c7=ellipse(h=200,w=38,fill="#af3b43",stroke="none")|repeat(200,rotate(200))
c8=ellipse(h=200,w=50,fill="#00A36C",stroke="none")|repeat(200,rotate(200))
c9=ellipse(h=200,w=70,fill="#FF1493",stroke="none")|repeat(200,rotate(200))
e1=circle(r=50,fill="white",stroke="none")
e2=circle(r=48,fill="#FF1493",stroke="none")
r0=rectangle ( h=69,w=69,fill=" black",stroke="none")
r3=rectangle(h=69,w=69,fill="black",stroke="none")|rotate(45)
r1=rectangle(h=65,w=65,fill="orange",stroke="orange")|repeat(2,rotate(45))
r5=rectangle(h=53,w=53,fill="#fc5f16",stroke="none")
r4=rectangle(h=53,w=53,fill="#fc5f16",stroke="none")|rotate(45)
r2=rectangle(h=50,w=50,fill="purple",stroke="purple")|repeat(2,rotate(45))
c10=circle(r=30,fill="#00FFFF",stroke="none")
c11=circle(r=27,fill="white",stroke="none")
yy=combine([r2,c9,c8,c7,c6,c5,c4,c3,e1,e2,r0,r3,r1,r5,r4,r2,c10,c11]) | scale(0.5)
show(yy)
e5=ellipse(w=80,h=40,fill="#ad1a72",stroke="#ad1a72")|repeat(8,rotate(45))
e6=ellipse(w=80,h=20,fill="#e34deb",stroke="#e34deb")|repeat(8,rotate(45))
e7=ellipse(w=80,h=10,fill="white",stroke="white")|repeat(8,rotate(45))
c8=circle(r=5,fill="red",stroke="red")
l=line(x1=2,y1=5,x2=4.5,y2=12,stroke="#e34deb")|repeat(100,rotate(10))
c=circle(r=3,x=120,y=0,fill="purple",stroke="purple")|repeat(20,rotate(20))
flower=combine([e5,e6,e7,c8,l,c])
smallflower =flower | scale(0.30)
show(smallflower)