WikiBtsSio
Lundi 15 décembre 2025
Lien pour turtle :
https://docs.python.org/fr/3/library/turtle.html
# Définir le mode RVB
turtle.colormode(255)
r=randint(1,255)
v=randint(1,255)
b=randint(1,255)
turtle.color((r,v,b))
clearscreen()
pos()
home()
begin_fill()
for i in range(4):
end_fill()
forward(200)
État de la tortue
- Visibilité
- showturtle() | st()
- hideturtle() | ht()
- isvisible()
from random import *
- penup()
- goto(randint(-460,460),randint(-400,400))
- pendown()