Categorygithub.com/justinclift/tinygo-wasm-rotating-cube
repositorypackage
0.0.0-20200229165112-4c04866bb52d
Repository: https://github.com/justinclift/tinygo-wasm-rotating-cube.git
Documentation: pkg.go.dev

# README

This is just simple research code, directly copied from Eric Suedmeier, to see if TinyGo wasm can be used for WebGL.

Running demo:

    https://justinclift.github.io/tinygo-wasm-rotating-cube/

Original source:

    https://github.com/bobcob7/wasm-rotating-cube

To compile the WebAssembly file:

$ tinygo build -target wasm -no-debug -o docs/wasm.wasm main.go

To strip the custom name section from the end (reducing file size further):

$ wasm2wat docs/wasm.wasm -o docs/wasm.wat
$ wat2wasm docs/wasm.wat -o docs/wasm.wasm
$ rm -f docs/wasm.wat