Escape hatch: use at your own risk!
Get the 2d canvas context that graphics functions render to. This is separate from the display canvas; it is not visibly exposed but rather copied each frame.
Are we fullscreen?
Get a unified canvas info object.
Sometimes you want a screen rect!
Get the apparent (in-game) canvas size.
Does the canvas have focus?
Set fullscreen.
Set the game's apparent resolution, fullscreen, etc.
A manager for the HTML canvas element, similar to
love.window.Controls game size / scaling -- both native and pixelart mode via Canvas.setMode, as well as fullscreen functions.
The canvas keeps two canvases: render and display. Each frame, it copies render to display before the canvas is presented. This allows for pixel-accurate scaling in fixed mode.