banner

package
v1.168.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Width  = 76
	Height = 6
)

Variables

View Source
var Lines = []string{
	`      ⣿⡿               ⣸⣿⠁                                               ⣤⡶`,
	` ⢠⣶⡿⢷⣶⣿⡇⢀⣴⣾⠿⢷⣦⡀ ⣠⣶⠿⢷⣦⡀⢀⣿⡟⣠⣶⠶⠂⢠⣶⡾⢿⣶⡄ ⣴⣶⣴⡿⠂   ⣠⣶⠿⢷⣦ ⢀⣴⣾⠿⣦⣶⡶ ⣠⣶⠿⢷⣦⡀ ⣶⣶⡶⢾⣷⡆⠠⢾⣿⡷⠆`,
	`⢠⣿⡏  ⣿⣿ ⣾⣿⠁ ⢈⣿⡇⢸⣿⠃  ⠉⠁⢸⣿⣿⣿⡇ ⢠⣿⣯⣤⣤⣿⡷⢀⣿⡟⠁    ⢀⣤⣤⣶⣾⣿ ⣼⣿⠁ ⢸⣿⡇⢸⣿⣧⣤⣤⣿⡇⢰⣿⡏ ⢰⣿⡇ ⣾⣿`,
	`⠘⣿⣧⣀⣴⣿⡏ ⢻⣿⣄⣠⣾⡿⠁⠸⣿⣄⣠⣾⡖ ⣿⡿⠁⢹⣿⡀⠈⢿⣧⣀⣴⣶⠄⣸⣿⠃     ⢺⣿⣄⣤⣿⡏ ⢻⣿⣤⣤⣾⣿ ⠘⣿⣦⣀⣴⡦ ⣼⣿  ⣼⣿ ⠠⣿⣇⡀`,
	` ⠈⠉⠉⠉⠉⠁  ⠉⠉⠉⠉   ⠈⠉⠉⠁  ⠉⠁ ⠈⠉⠁  ⠉⠉⠉⠁ ⠉⠉       ⠉⠉⠁⠉⠁ ⣤⣍⣉⣡⣿⡇  ⠈⠉⠉⠉  ⠉⠉  ⠉⠉  ⠉⠉⠁`,
	`                                                  ⠙⠛⠛⠛⠋`,
}

Lines is the italic wordmark in 2×4 braille cells.

Functions

func Render added in v1.162.0

func Render() []string

Render returns the static, theme-adjusted wordmark.

func RenderFrame added in v1.163.0

func RenderFrame(progress float64, paneWidth int) []string

RenderFrame renders a pane-width particle frame. The settled hold uses Render exactly.

Types

type Flock added in v1.168.0

type Flock struct {
	// contains filtered or unexported fields
}

Flock adds spring-bound local motion to the existing dust trajectory. Positions and forces use braille dots rather than terminal cells.

func (*Flock) Composite added in v1.168.0

func (f *Flock) Composite(base string, progress float64, paneWidth int, origin image.Point, viewport image.Rectangle, masks []image.Rectangle) string

Composite overlays occupied braille cells only, clipping at the viewport and foreground masks. One screen buffer and one dot pass keep work linear.

func (*Flock) Displaced added in v1.168.0

func (f *Flock) Displaced() bool

Displaced reports whether the flock owns a frame, including a resting hover.

func (*Flock) Leave added in v1.168.0

func (f *Flock) Leave() bool

Leave reports whether displaced particles need to return home.

func (*Flock) Near added in v1.168.0

func (f *Flock) Near(x, y, progress float64, width int) bool

Near reports whether the pointer is within the influence radius of a dot.

func (*Flock) Point added in v1.168.0

func (f *Flock) Point(x, y float64, click bool, progress float64, width int)

Point sets a pane-relative pointer; clicking gives nearby particles a kick.

func (*Flock) Step added in v1.168.0

func (f *Flock) Step(elapsed time.Duration, progress float64, width int) (active, changed bool)

Step reports whether motion needs frames and whether any dot changed cells. Small substeps keep the spring stable when terminal rendering delays ticks.

Jump to

Keyboard shortcuts

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