Skip to content
main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

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

Resources

License

Languages