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