Exemple #1
0
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)
Exemple #2
0
def leaves():
    left(10)
    times = 5
    for i in range(times):
        leaf(100, 80, 'right')
        right(360 / times)

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