Personal tools
You are here: o studio 110 2016-17 tmp Inf 11 doku doku s py s upload 5ECK-update.py

5ECK-update.py

Vincent Farana

5ECK-update.py — Python Source, 0Kb

File contents

from turtle import * # COPYRIGHT BY VINCENT FARANA!!!!!!

t1=Turtle()
t2=Turtle()
t3=Turtle()
t4=Turtle()

t1.color("red")
t2.color("blue")
t3.color("green")
t4.color("orange")

t2.left(90)
t3.left(180)
t4.left(270)

turtles = (t1, t2, t3, t4)

for turt in turtles:
    turt.forward(50)

for turt in turtles:
    turt.width(6)

for turt in turtles:
    turt.speed(50)

def drawfiveeck(f):
    for turt in turtles:
        for i in range(6):
            turt.forward(100)
            turt.left(60)
        
def turnl(b):
    for turt in turtles:
        turt.left(b)

def turnr(d):
    for turt in turtles:
        turt.right(d)

def prah():
    for i in range(8):
            drawfiveeck(i*2)
            turnl(45)

prah()
Document Actions