Last last tp

This commit is contained in:
Debucquoy Anthony 2022-11-24 09:49:57 +01:00
parent ff6eeb2fad
commit 86c66a6cb0
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
3 changed files with 11 additions and 12 deletions

View File

@ -16,8 +16,7 @@ def koch(t: umonsTurtle, x: int, seuil: int):
""" """
if x < seuil: if x < seuil:
moveForward(t, x) moveForward(t, x)
return else:
koch(t, x/3, seuil) koch(t, x/3, seuil)
turnLeft(t, 60) turnLeft(t, 60)
koch(t, x/3, seuil) koch(t, x/3, seuil)
@ -33,5 +32,5 @@ if __name__ == "__main__":
dropPen(turtle) dropPen(turtle)
moveBackward(turtle, 250) moveBackward(turtle, 250)
usePen(turtle) usePen(turtle)
koch(turtle, 500, 1) koch(turtle, 500, 20)
wait() wait()

View File

@ -23,5 +23,5 @@ def flocon_rec(t, x, seuil, sides, i):
if __name__ == "__main__": if __name__ == "__main__":
turtle = umonsTurtle() turtle = umonsTurtle()
turtle.speed(0) turtle.speed(0)
flocon(turtle, 100, 5, sides=5) flocon(turtle, 100, 6, sides=4)
wait() wait()

View File

@ -24,5 +24,5 @@ def carre(t: umonsTurtle, x: int, seuil: int):
if __name__ == "__main__": if __name__ == "__main__":
turtle = umonsTurtle() turtle = umonsTurtle()
turtle.speed(0) turtle.speed(0)
carre(turtle, 200, 1) carre(turtle, 200, 5)
wait() wait()