Code
outer_circle= circle(r=149, fill='#291810')
show(outer_circle)
def triangle(x1,y1,x2,y2,x3,y3,fill,stroke):
p1 = point(x1,y1)
p2 = point(x2,y2)
p3 = point(x3,y3)
poly = polygon([p1,p2,p3],fill=fill,stroke=stroke)
return poly
def square(color, side):
return rectangle(w=side, h=side, fill=color, stroke='none')
def circle(color,radius):
return ellipse(w=radius,h=radius,r=radius,fill=color,stroke = 'none')
# square patterns
dark_red_layer = square(side=208, color='#460305') | rotate(5) | repeat(10, rotate(10))
red_layer = square(side=193, color='#81151e') | repeat(10, rotate(10))
orange_layer = square(side=178, color='#e28434') | rotate(5) | repeat(10, rotate(10))
yellow_layer = square(side=165, color='#e6cb3c') | repeat(10, rotate(10))
show(dark_red_layer,red_layer, orange_layer,yellow_layer)
# ///////////////////////////////////////////////////////
second_green_circle = circle(color = '#142103',radius = 216)
show(second_green_circle)
inner_white_triangle = square(side=150, color='white') | repeat(5, rotate(30))
show(inner_white_triangle)
inner_red_triangle = square(side=125, color='#440e14') | repeat(5, rotate(30))
show(inner_red_triangle)
inner_rose_triangle = square(side=110, color='#ba3855') | repeat(5, rotate(30))
show(inner_rose_triangle)
# //////////////////////////////////////////////////
third_green_circle = circle(radius=130, color='#142103')
show(third_green_circle)
a_petal = ellipse(x=0,y=82,w=11.5, h=28.5, fill="#800000", stroke="#800000", stroke_width=5) + triangle(x1=-7, y1=90, x2=0, y2=106, x3=7, y3=90,fill="#7a1017",stroke = "#7a1017")
petals = a_petal | repeat(12, rotate(30))
show(petals)
inside_triangle = triangle(x1=-18, y1=20, x2=0, y2=63, x3=18, y3=20,fill="#FDDA0D",stroke = "#FDDA0D") | rotate(30) | repeat(6, rotate(60))
show(inside_triangle)
inside_ellipse = ellipse(x=0,y=25,w=22, h=46, fill="#FF7518", stroke="#FFAC1C", stroke_width=5) | repeat(6, rotate(60))
show(inside_ellipse)
# gradients for white
# g1 = color(252, 252, 255)
# g2 = color(248, 248, 255)
# g3 = color(244, 244, 251)
# g4 = color(239, 239, 246)
# g5 = color(235, 235, 242)
white_inside = circle(radius=40, color='white')
show(white_inside)