Personal tools
You are here: o studio 110 2016-17 tmp Inf 11 doku doku s py s upload Kreise(funktioniert)[COPYRIGHT VINCENT].py

Kreise(funktioniert)[COPYRIGHT VINCENT].py

Vincent Farana

Kreise(funktioniert)[COPYRIGHT VINCENT].py — Python Source, 0Kb

File contents

from turtle import *

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

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

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

turtles = (t1, t2, t3, t4)

for turt in turtles:
    turt.forward(50)

def circler(f):
    for turt in turtles:
        turt.circle(f)

for turt in turtles:
    turt.width(8)
        
def turnl(b):
    for turt in turtles:
        turt.left(b)

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


def prah():
    for i in range(300):
        circler(i*2)
        turnl(45)

prah()
Document Actions