Skip to content

soypat/threejs-golang-example

Repository files navigation

rotation cube example

threejs-golang-example

THREE.js example of rotating cube using gopherjs bindings. 160 lines of Go code.

How to run example

Drop index.html in a browser window or open using browser.

How I did this

  1. Code the project in Go. The program is contained in main.go.

  2. Generate javascript using gopherjs with command:

    gopherjs build
    You can install gopherjs with the following command:
    go get -u github.com/gopherjs/gopherjs
  3. Create my html page manually as index.html

⚠️ Notice! ⚠️

The gopherjs bindings for three.js have been archived!

If you are starting a new project consider using the WASM bindings!

About

THREE.js example of rotating cube using gopherjs bindings. 160 lines of Go code.

Resources

License

Stars

Watchers

Forks

Languages