https://github.com/tidwall/digitalrain
Matrix Digital Rain written in Go for HTML5 + Canvas
https://github.com/tidwall/digitalrain
graphics toy
Last synced: 9 months ago
JSON representation
Matrix Digital Rain written in Go for HTML5 + Canvas
- Host: GitHub
- URL: https://github.com/tidwall/digitalrain
- Owner: tidwall
- License: mit
- Created: 2015-01-18T08:14:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-11-26T19:57:56.000Z (about 2 years ago)
- Last Synced: 2025-03-29T20:07:40.168Z (10 months ago)
- Topics: graphics, toy
- Language: Go
- Homepage:
- Size: 181 KB
- Stars: 386
- Watchers: 14
- Forks: 41
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Digital Rain
============
Digital Rain is an HTML5 + Canvas demo app written entirely in [Go](http://golang.org/).
It's intended to mimic the look of the [falling text](https://www.youtube.com/watch?v=rpWrtXyEAN0) in the movie [The Matrix](http://www.imdb.com/title/tt0133093/).
[Live Demo](http://tidwall.com/digitalrain/)
Build
-----
Install [Go](http://golang.org/) and [GopherJS](http://github.com/gopherjs/gopherjs)
```bash
# Prepare GOPATH
export GOPATH=$(go env GOPATH)
export PATH=$PATH:$(go env GOPATH)/bin
# Install gopherjs
go install github.com/gopherjs/gopherjs@v1.18.0-beta2
# Install specific go version for gopherjs
go install golang.org/dl/go1.18.10@latest
go1.18.10 download
export GOPHERJS_GOROOT="$(go1.18.10 env GOROOT)"
# Build and Serve
gopherjs build digitalrain.go --minify
gopherjs serve
```
License
-------
Digital Rain is available under the [MIT License](LICENSE).