예제 #1
0
def flower():
    times = 9
    for i in range(times):
        arc(90, 180)
        goto(0, 0)
        left(180)
        right(360 / times)
예제 #2
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)
예제 #3
0
def parachute(radius):
    left(30)
    fd(radius * 2)
    right(30)
    arc(radius, 180, 'right')
    right(30)
    fd(radius * 2)
    right(150)
예제 #4
0
def branch():
    groups = 3

    for i in range(groups):
        arc(120, 20, 'right')
        diamondLeaves()

    left(60)
예제 #5
0
파일: 79.py 프로젝트: Lionel1204/100flowers
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)
예제 #6
0
def ring():
    for r in [20, 40]:
        pu()
        goto(-r, 0)
        pd()
        arc(r, 360, 'right')

    pu()
    goto(0, 0)
예제 #7
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)
예제 #8
0
파일: 92.py 프로젝트: Lionel1204/100flowers
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)
예제 #9
0
파일: 81.py 프로젝트: Lionel1204/100flowers
def concentricCircles():
  for r in [80, 30]:
    pu()
    goto(-r, 0)
    pd()
    arc(r, 360, 'right')
예제 #10
0
def bigCircle():
    pu()
    goto(-170, 0)
    pd()
    arc(170, 360, 'right')
예제 #11
0
파일: 95.py 프로젝트: Lionel1204/100flowers
def ring():
    for r in [170, 180]:
        pu()
        goto(-r, 0)
        pd()
        arc(r, 360, 'right')
예제 #12
0
def flower1():
  times = 6
  for i in range(times):
    arc(90, 360, 'right')
    right(360/times)
예제 #13
0
def bigCircle():
    r = 175
    pu()
    goto(-r, 0)
    pd()
    arc(r, 360, 'right')
예제 #14
0
def heart():
  r = 20
  pu()
  goto(-r, 0)
  pd()
  arc(r, 360, 'right')
예제 #15
0
파일: 86.py 프로젝트: Lionel1204/100flowers
def heart():
  pu()
  goto(-30, 0)
  pd()
  arc(30, 360, 'right')