animations

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 1 Imported by: 12

Documentation

Overview

Package animations provides a collection of spinner animations. Animations have been borrowed from the following sources: * https://wiki.tcl-lang.org/page/Text+Spinner * https://stackoverflow.com/questions/2685435/cooler-ascii-spinners

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnimation

func GetAnimation(a Animation) (time.Duration, []string)

GetAnimation retirms a slice of strings for the given type.

Types

type Animation

type Animation int
const (
	Arc Animation = iota
	Arrow
	Baloon
	Baloon2
	Circle
	CircleHalves
	CircleQuarters
	Dots
	Hamburger
	Layer
	Pipe
	Point
	Star
	SquareCorners
)

func GetAnimations added in v0.2.0

func GetAnimations() []Animation

GetAnimations returns an unsorted slice of all available animations ids.

type Properties added in v0.2.0

type Properties struct {
	Speed      time.Duration
	Characters []string
}

func (Properties) GetCharacters added in v0.2.0

func (p Properties) GetCharacters() []string

func (Properties) GetSpeed added in v0.2.0

func (p Properties) GetSpeed() time.Duration

Jump to

Keyboard shortcuts

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