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 leaves(): left(10) times = 5 for i in range(times): leaf(100, 80, 'right') right(360 / times) right(10)
def leaves(): for r in range(40, 120, 40): fd(20) left(45) leaf(r, 90, 'right') pu() right(45) goto(0, 0) pd()
def petal(): pu() fd(55) pd() leaf(43, 100, 'right') fd(120) left(80) leaf(60, 90, 'left') right(80) pu() goto(0, 0)
def leaves(): seth(0) times = 10 for i in range(times): pu() fd(40) pd() leaf(70, 50, 'right') leaf(70, 50, 'left') pu() goto(0, 0) right(360 / times)
def flower(): times = 6 for i in range(times): parachute(50) fd(20) left(45) leaf(50, 90, 'right') pu() right(45) goto(0, 0) pd() right(360 / times)
def leaves(count): times = 10 for i in range(times): pu() fd(120) left(90) pd() for i in range(count): left(10) leaf(45, 80, 'right') right(10) right(180 / count) left(90) 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 branch(): fd(30) leaf(30, 100, 'right') fd(95) leaves(7)
def leaves(count): for i in range(count): leaf(40, 80, 'right') right(360 / count)
def petal(): for r in range(60, 100 + 1, 20): leaf(r, 90, 'right')
def flower(): times = 5 for i in range(times): leaf(100, 120, 'right') right(360/times)
def lotus(): times = 3 for i in range(times): leaf(85, 90, 'right') right(100 / times)
def flower(): times = 10 for i in range(times): polygon(125, 4) leaf(60, 90, 'right') right(360/times)
def leaves(): for i in range(2): leaf(25, 100, 'right') left(90) left(180)
def lotus(): times = 4 for i in range(times): leaf(45, 100, 'right') right(120 / times)