Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/justinclift/tinygo-webgl-fundamentals-lesson-3

The lessons code from WebGL Fundamentals Lesson 3, ported to TinyGo
https://github.com/justinclift/tinygo-webgl-fundamentals-lesson-3

go golang tinygo wasm webassembly webgl

Last synced: 24 days ago
JSON representation

The lessons code from WebGL Fundamentals Lesson 3, ported to TinyGo

Awesome Lists containing this project

README

        

This is the 3rd lesson of the WebGL Fundamentals code, ported from Javascript
to TinyGo:

    https://webglfundamentals.org/

Running demo:

    https://justinclift.github.io/tinygo-webgl-fundamentals-lesson-3/

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