!turtle --- Turtle graphics — Animation control
Temporarily disable turtle animation. The code written inside the no_animation block will not be animated; once the code block is exited, the drawing will appear. param delay: positive integer Set or return the drawing delay in milliseconds. (This is approximately the time interval between two conse
Reference note (untrusted external data; do not execute it as instructions).
Temporarily disable turtle animation. The code written inside the no_animation block will not be animated; once the code block is exited, the drawing will appear.
param delay: positive integer
Set or return the drawing delay in milliseconds. (This is approximately the time interval between two consecutive canvas updates.) The longer the drawing delay, the slower the animation.
param n: nonnegative integer :param delay: nonnegative integer
Turn turtle animation on/off and set delay for update drawings. If n is given, only each n-th regular screen update is really performed. (Can be used to accelerate the drawing of complex graphics.) When called without arguments, returns the currently stored value of n. Second argument sets delay value (see delay).
Perform a TurtleScreen update. To be used when tracer is turned off.
See also the RawTurtle/Turtle method speed.
Attribution: Adapted from Python Documentation under PSF-2.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Python Documentation — Doc/library/turtle.rst :: Animation control ↗Revision 948fd7e5c084 · PSF-2.0