IdentifiantMot de passe
Mot de passe oublié ?Je m'inscris ! (gratuit)
20.4.1 Turtle, Pen and RawPen Objects

20.4.1 Turtle, Pen and RawPen Objects

Most of the global functions available in the module are also available as methods of the Turtle, Pen and RawPen classes, affecting only the state of the given pen.

The only method which is more powerful as a method is degrees(), which takes an optional argument letting you specify the number of units corresponding to a full circle:

degrees( [fullcircle])
fullcircle is by default 360. This can cause the pen to have any angular units whatever: give fullcircle 2*$\pi$ for radians, or 400 for gradians.

See About this document... for information on suggesting changes.