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:
|
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()
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user