coordinates
A pair of numbers, x across and y down or up, that gives a position in a window.
In more detail
In graphics.py the default origin (0, 0) is the top-left corner and y grows downwards. After win.setCoords(0, 0, 10, 10), the origin is the bottom-left and each unit is a tenth of the window.
Related terms
- pixel — One tiny dot of the screen; positions in a graphics window are measured in pixels by default.
- setCoords() — The GraphWin method that sets your own coordinate system, giving the x and y of the lower-left and upper-right corners.
- Point — The graphics.py object for a single position, made with Point(x, y), used to place and size other shapes.
Taught in
- Input, And Numbers Versus Digits — Hands-on Python: Complete Video Course & Book
- Multiple Parameters — Hands-on Python: Complete Video Course & Book
- A Graphics Introduction — Hands-on Python: Complete Video Course & Book
- Sample Graphics Programs — Hands-on Python: Complete Video Course & Book
- Reading The graphics.py Documentation — Hands-on Python: Complete Video Course & Book