humidify

command module
v0.0.0-...-9fa9d18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

README

Humidify

Rain in the terminal

Install

AUR
yay -S humidify-git
Source
go install github.com/mazylol/humidify

Run

humidify

Features

  • 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)

Note

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!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL