Code
#HAPPY ONAM :)
rec1 = rectangle(w=211,h=211,fill="DarkViolet",stroke="DarkViolet")|repeat(40,rotate(50))
rec2 = rectangle(w=195,h=195,fill="BlueViolet",stroke="BlueViolet")|rotate(15)|repeat(40,rotate(50))
rec3 = rectangle(w=179,h=179,fill="Fuchsia",stroke="Fuchsia")|rotate(30)|repeat(30,rotate(50))
rec4 = rectangle(w=165,h=165,fill="Violet",stroke="Violet")|rotate(15)|repeat(30,rotate(50))
rec5 = rectangle(w=152,h=152,fill="white",stroke="white")|rotate(20)|repeat(30,rotate(50))
show(rec1,rec2,rec3,rec4,rec5)
cent=ellipse (w=220,h=50,fill="green",stroke="gold",stroke_width=2) | repeat (24,rotate (10))
show(cent)
s1 = ellipse(fill="Crimson",stroke='none')
s2 = s1 | rotate(45)
s3 = s1 | rotate(90)
s4 = s1 | rotate(135)
show(s1, s2, s3, s4)
s = circle(x=77, y=0, r=10, fill='orange',stroke='tomato',stroke_width=2)
s1 = s | repeat(20, scale(0.85))
s2 = s1 | repeat(36, rotate(10))
show(s2)
s1=shape = ellipse(w=120,h=20,fill='Crimson') | repeat(20, rotate(60))
show(shape)
s2=shape = ellipse(w=120,h=20,fill='crimson') | repeat(20, rotate(80))
show(shape)
s3=shape = ellipse(w=70,h=10,fill='gold') | repeat(20, rotate(80))
show(shape)
def dot(x, y):
c = circle(x=x, y=y, r=10, fill="red")
return c
d = dot(x=0, y=0)
show(d)