Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé
Module « turtle » Python 3.13.2

Fonction tiltangle - module turtle

Signature de la fonction tiltangle

def tiltangle(angle=None) 

Description

help(turtle.tiltangle)

Set or return the current tilt-angle.

Optional argument: angle -- number

Rotate the turtleshape to point in the direction specified by angle,
regardless of its current tilt-angle. DO NOT change the turtle's
heading (direction of movement).
If angle is not given: return the current tilt-angle, i. e. the angle
between the orientation of the turtleshape and the heading of the
turtle (its direction of movement).

Examples:
>>> shape("circle")
>>> shapesize(5, 2)
>>> tiltangle()
0.0
>>> tiltangle(45)
>>> tiltangle()
45.0
>>> stamp()
>>> fd(50)
>>> tiltangle(-45)
>>> tiltangle()
315.0
>>> stamp()
>>> fd(50)


Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé