Rain in the terminal
yay -S humidify-git
go install github.com/mazylol/humidify
humidify
- Change raindrop character (--character)
- Change raindrop speed (--speed)
- Change raindrop color (--color)
- Control number of raindrops falling (--density)
- Change splash size (--splash-size)
- Set width of the terminal grid (--width)
- Set height of the terminal grid (--height)
- Change the gravity, or acceleration of the drops (--gravity)
- Disable splash (--no-splash)
This program is heaviliy unoptimized. Every drop is running in its own goroutine. So...beware if you are on weaker hardware. Might optimize later. Probably could get away with running multiple drops per goroutine at the same speed without being noticeable.
Making drops not speed up to infinity, limiting goroutines to 50, and adding a 50ms delay in the render loop dramatically improved performance!