This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
import random | |
turtle.setup(1400,700) | |
p1=turtle.Turtle() | |
p1.pencolor("blue") | |
p1.pensize(3) | |
p1.fillcolor("blue") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
""" | |
######################################### | |
#.......................................# | |
#.......................................# | |
######################################### | |
""" | |
maxlines=23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
import random | |
#rekursive tree | |
def branch(length=50, angle=30, factor=0.5, stops=2): | |
if length < 5: | |
return | |
turtle.fd(length) | |
turtle.left(angle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
""" | |
######################################### | |
#.......................................# | |
#.......................................# | |
######################################### | |
""" | |
maxlines=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
import random | |
def nadelbaum(c1="brown", c2stamm="brown", | |
c2nadeln="green", breite=20 | |
hoehe=50): | |
turtle.color("brown","brown") | |
turtle.begin_fill() | |
turtle.forward(20) | |
turtle.right(90) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
import random | |
turtle.setup(1400,800) | |
peter=turtle.Turtle() | |
peter.pencolor("blue") | |
peter.pensize(3) | |
peter.fillcolor("red") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
import random | |
rosi = turtle.Turtle() | |
rosi.speed(0) | |
rosi.shape("turtle") | |
rosi.pensize(2) | |
rosi.pencolor("green") | |
rosi.fillcolor("red") | |
rosi.goto(-100,-50) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
import random | |
rosi = turtle.Turtle() | |
rosi.speed(0) | |
rosi.shape("turtle") | |
rosi.pensize(2) | |
rosi.pencolor("green") | |
rosi.fillcolor("red") | |
rosi.goto(-100,-50) |