Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

License

Notifications You must be signed in to change notification settings

soypat/threejs-golang-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Contributors

Languages