예제 #1
0
def lace():
    times = 30
    for i in range(times):
        pu()
        fd(150)
        pd()
        polygon(20, 3)
        left(60)
        polygon(20, 3)
        right(60)
        pu()
        goto(0, 0)
        right(360 / times)
예제 #2
0
파일: 81.py 프로젝트: Lionel1204/100flowers
def flower():
  times = 10
  for i in range(times):
    pu()
    fd(80)
    left(30)
    pd()
    polygon(112, 3)
    polygon(90, 3)
    pu()
    right(30)
    fd(-80)
    right(360/times)
예제 #3
0
파일: 85.py 프로젝트: Lionel1204/100flowers
def flower():
  times = 9
  for r in range(times):
    pu()
    fd(145)
    left(120)
    pd()
    polygon(50, 3)
    right(180)
    polygon(50, 3)
    left(60)
    pu()
    fd(-145)
    right(360 / times)
    pd()
예제 #4
0
def flower():
    times = 12
    for i in range(times):
        fd(80)
        for size in [77, 30]:
            pd()
            left(30)
            polygon(size, 3)
            right(30)
            pu()
            fd(23)

        goto(0, 0)
        pd()
        right(360 / times)
예제 #5
0
def flower():
    times = 8
    for i in range(times):
        polygon(35, 12)
        right(360 / times)
예제 #6
0
파일: 77.py 프로젝트: Lionel1204/100flowers
def fan():
  times = 6
  for i in range(times):
    polygon(50, 3)
    right(120/times)
예제 #7
0
def flower():
  times = 10
  for i in range(times):
    polygon(125, 4)
    leaf(60, 90, 'right')
    right(360/times)
예제 #8
0
def hexagon():
    times = 6
    for i in range(times):
        polygon(180, 3)
        polygon(170, 3)
        right(360 / times)
예제 #9
0
def triangles():
    times = 5
    for i in range(times):
        polygon(150, 3)
        right(360 / times)
예제 #10
0
def flower():
    times = 8
    for i in range(times):
        polygon(160, 3)
        right(360 / times)
예제 #11
0
파일: 86.py 프로젝트: Lionel1204/100flowers
def outer():
  times = 5
  for i in range(times):
    polygon(38, 4)
    right(360/times)