command
Version:
v0.0.0-...-6fa7160
Opens a new window with list of versions in this module.
Published: Nov 6, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Simple examples using webgl-go
A colored triangle
-
Copy wasm_exec.js
from the standard Go
installation in this folder (only once).
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .
-
Compile the code
GOARCH=wasm GOOS=js go build -o demo.wasm demos/triangle.go demos/shader_helpers.go
-
Serve the web page
go run server.go
-
Open the following URL in a browser: http://localhost:8080/
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.