animation

package
v3.0.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FramesFromSlice

func FramesFromSlice(frames []string) *sliceFrames

func FramesFromString

func FramesFromString(frames string) *sliceFrames

func UTF8stringWidth

func UTF8stringWidth(str string) int

Types

type Animation

type Animation struct {
	Framerate      float64
	Source         FrameSource
	Output         io.Writer
	ClearLastFrame bool
	WaitUntilDone  func()
	// contains filtered or unexported fields
}

func (*Animation) Run

func (animation *Animation) Run()

func (*Animation) Stop

func (animation *Animation) Stop()

type FrameSource

type FrameSource interface {
	Next() bool
	Frame() string
}

Jump to

Keyboard shortcuts

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