Last last tp
This commit is contained in:
parent
ff6eeb2fad
commit
86c66a6cb0
@ -16,8 +16,7 @@ def koch(t: umonsTurtle, x: int, seuil: int):
|
||||
"""
|
||||
if x < seuil:
|
||||
moveForward(t, x)
|
||||
return
|
||||
|
||||
else:
|
||||
koch(t, x/3, seuil)
|
||||
turnLeft(t, 60)
|
||||
koch(t, x/3, seuil)
|
||||
@ -33,5 +32,5 @@ if __name__ == "__main__":
|
||||
dropPen(turtle)
|
||||
moveBackward(turtle, 250)
|
||||
usePen(turtle)
|
||||
koch(turtle, 500, 1)
|
||||
koch(turtle, 500, 20)
|
||||
wait()
|
||||
|
@ -23,5 +23,5 @@ def flocon_rec(t, x, seuil, sides, i):
|
||||
if __name__ == "__main__":
|
||||
turtle = umonsTurtle()
|
||||
turtle.speed(0)
|
||||
flocon(turtle, 100, 5, sides=5)
|
||||
flocon(turtle, 100, 6, sides=4)
|
||||
wait()
|
||||
|
@ -24,5 +24,5 @@ def carre(t: umonsTurtle, x: int, seuil: int):
|
||||
if __name__ == "__main__":
|
||||
turtle = umonsTurtle()
|
||||
turtle.speed(0)
|
||||
carre(turtle, 200, 1)
|
||||
carre(turtle, 200, 5)
|
||||
wait()
|
||||
|
Loading…
Reference in New Issue
Block a user