Coordinate System Explorer
Run the Coordinate Explorer Fullscreen
Sample iframe reference
1 2 3 4 | |
About This MicroSim
Understanding coordinate systems is essential for placing elements precisely in interactive infographics. This explorer shows both pixel coordinates and relative (0.0-1.0) coordinates simultaneously as you move your mouse across the canvas. Toggle between grid types, snap to grid intersections, and place numbered markers to build fluency with both coordinate systems.
Lesson Plan
Learning Objective
Use pixel and relative coordinate systems to place elements on a canvas, and convert between the two systems by observing how mouse position maps to both coordinate types simultaneously.
Activities
- Move your mouse across the canvas and observe the coordinate readout updating in real time.
- Switch between pixel grid and relative grid — notice how the grid labels change.
- Enable "Snap to Grid" and try placing markers at specific grid intersections.
- Resize the browser window and observe: pixel coordinates of the default shapes change, but their relative coordinates stay the same.
References
- Canvas Coordinate System - MDN — How the HTML Canvas coordinate system works.