项目作者: tidwall

项目描述 :
Matrix Digital Rain written in Go for HTML5 + Canvas
高级语言: Go
项目地址: git://github.com/tidwall/digitalrain.git
创建时间: 2015-01-18T08:14:28Z
项目社区:https://github.com/tidwall/digitalrain

开源协议:MIT License

下载


Digital Rain

Digital Rain is an HTML5 + Canvas demo app written entirely in Go.
It’s intended to mimic the look of the falling text in the movie The Matrix.

Live Demo

Build

Install Go and GopherJS

  1. # Prepare GOPATH
  2. export GOPATH=$(go env GOPATH)
  3. export PATH=$PATH:$(go env GOPATH)/bin
  4. # Install gopherjs
  5. go install github.com/gopherjs/gopherjs@v1.18.0-beta2
  6. # Install specific go version for gopherjs
  7. go install golang.org/dl/go1.18.10@latest
  8. go1.18.10 download
  9. export GOPHERJS_GOROOT="$(go1.18.10 env GOROOT)"
  10. # Build and Serve
  11. gopherjs build digitalrain.go --minify
  12. gopherjs serve

License

Digital Rain is available under the MIT License.