examples

command
v0.0.0-...-ccffa87 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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