Demonstration generating an image in C++ compiled to webassembly and copying it to a canvas element.

main.js

main.cpp

Makefile