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

eskalation Niki.py

Niklas Vogel

eskalation Niki.py — Python Source, 0Kb

File contents

from turtle import *
t1 = Turtle()
t2 = Turtle()
t3 = Turtle()
t4 = Turtle()
turtles = (t1, t2, t3, t4)
t1.color("pink")
t2.color("yellow")
t3.color("orange")
t4.color("blue")
t2.left(90)
t3.left(180)
t4.left(270)

for turt in turtles:
	turt.forward(100)

	
for turt in turtles:
	turt.width(5)

    
def go(x):
	for turt in turtles:
		turt.forward(x)

		
def turnl(f):
	for turt in turtles:
		turt.left(f)

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

		
def eskalation():
         for i in range(100):
                 go(i*5)
                 turnl(45)

		

eskalation()
Document Actions