move()
The graphics.py method that shifts a drawn shape by dx pixels across and dy pixels down.
In more detail
Calling move many times with a short pause between is how the course makes animations. Moving a shape changes the object itself, which matters when two names refer to the same shape.
Related terms
- animation — Making shapes appear to move by redrawing them in slightly different places many times a second.
- dx and dy — Short names for the change in x and the change in y, the distance a shape moves across and down in one step.
- aliasing — Having two or more names that refer to the same object, so a change made through one name shows up through the other.
Taught in
- A Graphics Introduction — Hands-on Python: Complete Video Course & Book
- Reading The graphics.py Documentation — Hands-on Python: Complete Video Course & Book
- Animation: Moving One Shape — Hands-on Python: Complete Video Course & Book
- Animation: Loops, Bouncing, Flushing — Hands-on Python: Complete Video Course & Book
- Nesting Control Flow Statements — Hands-on Python: Complete Video Course & Book