Presentation for Code on the Beach 2019
webassembly.mdand theimagesdirectory make up the presentation, which is played through DeckSet https://www.deckset.com- The
adderdirectory contains the files for the Adder application - The
colorsdirectory contains the files for the Colors application - The
jscolorsdirectory contains the JavaScript implementation of thespinfunction used in the Colors application
WebAssembly module in
watformat to add two numbers
- The WebAssembly Binary Toolkit https://github.com/WebAssembly/wabt
- Python 3 (or some other local web server)
$ cd adder
$ makeThis will compile the WebAssembly module and start a local web server. Open your browser to http://localhost:8000 and use the arrow keys to increment/decrement the addends.
add.wat-- source for the WebAssembly module with a function to add two numbersadder.js-- JavaScript to load the WebAssembly module and set the event listener to call theaddfunctionindex.html-- page for addend input and sum outputmain.css-- some amateur styling
Web App in WebAssembly and Rust that displays a triadic color palettes
- Rust https://www.rust-lang.org
wasm-packhttps://rustwasm.github.io/wasm-pack/wasm32-unknown-unknown- npm https://www.npmjs.com
$ cd colors
$ wasm-pack build
$ cd www
$ npm install
$ npm run startThis will compile the WebAssembly module and start a local web server. Open your browser to http://localhost:8080, click the color at the top, select a new color, and watch the other colors update.
Copyright © 2019 Rob Warner
Licensed under the MIT License

