The above HTML canvas is painted with a C program compiled to webassembly!
If you're like me, "webassembly" sounds(/sounded) like an appealing target, but the specifics seemed odious (lock-in to strange SDKs; delegation to a thick JS compatibility layer; some sort of malware called "NPM"...)

 | "There must be a better way!" — Raymond Hettinger

The source code of this page contains a purpose-built JS shim layer that imbues the compiled WASM application with mouse-tracking and canvas-drawing powers! (<100 lines at time of writing; if I add networking and sprite-loading it'll get thicker.)

The C program is compiled with clang --target=wasm32. Amusingly, it does not (and i think cannot) use the C standard library, including malloc. (This takes the exercise in minimalism a bit more extreme than initially intended...!)

heatherspacek.com