dorkhub

digitalrain

Matrix Digital Rain written in Go for HTML5 + Canvas

tidwall
Go38840 forksMITupdated 2 years ago
git clone https://github.com/tidwall/digitalrain.gittidwall/digitalrain

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

# 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.

more like this

webgpu

Zero-CGO WebGPU bindings for Go — GPU-accelerated graphics and compute in pure Go

Go52

cadubi

:art: Creative ASCII Drawing Utility By Ian (1997)

Perl54

search

search projects, people, and tags