HTML Canvas with logic written in C programming language, compiled with Emscripten into a WebAssembly Module.
Demo project from "Getting started with WebAssembly & Emscripten" course on Udemy (https://www.udemy.com/course/webassembly-emscripten/) made to ilustrate the benefits of using WebAssembly & Emscripten in situations when a lot of computation needs to be done on the client side of a website.
- CMD: npm install
- CMD: yarn start
- HUMAN: Open Google Chrome and navigate to http:\\localhost:2222
- HUMAN: Install emscripten on your machine (https://emscripten.org/docs/getting_started/downloads.html)
- CMD: emcc lib\canvas.c -s WASM=1 -s "EXPORTED_FUNCTIONS=['_main', '_getCircles']" -o public\canvas.js