Skip to content
Projets

À propos

Animation library for terminal UIs

Design et médias

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
Historique en cours
in 7 days
Historique en cours
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

tarang

Animation library for terminal UIs

Tarang terminal animation demo

Install

Use Go 1.24 or later. Run this in your Go module.

go get github.com/vyrx-dev/tarang

Quick start

Save this as main.go and run go run . in an ANSI-capable terminal.

package main

import (
	"fmt"
	"time"

	"github.com/vyrx-dev/tarang"
	"github.com/vyrx-dev/tarang/effects"
)

func main() {
	const step = time.Second / 30
	p := tarang.New("Hello, Tarang!", effects.Typewriter(), tarang.FromEnv())
	fmt.Print(p.View())
	for !p.Done() {
		time.Sleep(step)
		p.Advance(step)
		fmt.Printf("\r%s", p.View())
	}
	fmt.Println()
}

Showcase

See every effect in an interactive terminal gallery:

cd adapters/bubbletea && go run ./examples/showcase

Documentation

Credits and licenses

TerminalTextEffects inspired many of the visuals. Tarang implements them independently. The easing curves follow Robert Penner's equations.

Tarang is MIT-licensed. See LICENSE and the dependency license notices.

Explorer des projets similaires

Chargement…