def flower(): times = 9 for i in range(times): arc(90, 180) goto(0, 0) left(180) right(360 / times)
def flower(): times = 12 for i in range(times): parallelogram(40, 40, 30) pu() # half of diamond, goto diamond the opposite angles fd(40) right(30) fd(40) left(30) pd() #draw a leaf left(180) arc(30, 150, 'left') right(150) arc(30, 120, 'right') leaf(50, 110, 'left') left(120) pu() goto(0, 0) pd() right(360 / times)
def parachute(radius): left(30) fd(radius * 2) right(30) arc(radius, 180, 'right') right(30) fd(radius * 2) right(150)
def branch(): groups = 3 for i in range(groups): arc(120, 20, 'right') diamondLeaves() left(60)
def flower(): times = 12 for i in range(times): arc(120, 90, 'right') arc(30, 100, 'right') goto(0, 0) right(170) right(360/times)
def ring(): for r in [20, 40]: pu() goto(-r, 0) pd() arc(r, 360, 'right') pu() goto(0, 0)
def ring(): times = 45 for i in range(times): pu() fd(150) pd() arc(20, 360, 'right') pu() goto(0, 0) right(360 / times)
def flower(): times = 12 for i in range(times): parallelogram(40, 40, 30) # go to the oppsite angle fd(40) right(30) fd(40) left(30) left(180) arc(50, 90, 'right') fd(35) leaf(45, 110, 'right') left(90) pu() goto(0, 0) pd() right(360/times)
def concentricCircles(): for r in [80, 30]: pu() goto(-r, 0) pd() arc(r, 360, 'right')
def bigCircle(): pu() goto(-170, 0) pd() arc(170, 360, 'right')
def ring(): for r in [170, 180]: pu() goto(-r, 0) pd() arc(r, 360, 'right')
def flower1(): times = 6 for i in range(times): arc(90, 360, 'right') right(360/times)
def bigCircle(): r = 175 pu() goto(-r, 0) pd() arc(r, 360, 'right')
def heart(): r = 20 pu() goto(-r, 0) pd() arc(r, 360, 'right')
def heart(): pu() goto(-30, 0) pd() arc(30, 360, 'right')