Click the canvas to change the background color.
Minimal example of animating the HTML5 canvas from C++ using OpenGL through WebAssembly.
Source code: https://github.com/timhutton/opengl-canvas-wasm