Universal fullscreen toggle button for all demos
The Fullscreen Button provides a user-friendly toggle for entering and exiting fullscreen mode, automatically positioned in the lower-right corner of every demo.
Creates a fullscreen button for the canvas.
const fsButton = createFullscreenButton(canvas);
Manually toggles fullscreen mode.
if (isKeyPressed("f")) toggleFullscreen();