animation

package
v3.0.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 9 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

Types

type Animation

type Animation struct {
	// Config part
	Framerate      float64
	Source         FrameSource
	Output         io.Writer
	ClearLastFrame bool
	// 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