tinygo-wasm-basic-triangle

command module
v0.0.0-...-0e0b59f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

README

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

Running demo:

    https://justinclift.github.io/tinygo-wasm-basic-triangle/

Original source:

    https://github.com/bobcob7/wasm-basic-triangle

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL