autoflush
A GraphWin setting that controls whether the screen redraws after every change or only when you call update().
In more detail
With autoflush=False, several shapes can be moved and then shown together with one update() call, so a face moves as a whole instead of piece by piece. Without it, every single move is drawn separately, which can make a group of shapes appear to move one piece at a time.
Related terms
- animation — Making shapes appear to move by redrawing them in slightly different places many times a second.
- GraphWin — The graphics.py class for a window you can draw in, created as GraphWin(title, width, height).
Taught in
- Animation: Loops, Bouncing, Flushing — Hands-on Python: Complete Video Course & Book