animations

package
v0.0.0-...-a63b4ce Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animation

type Animation interface {
	Width(int)
	Content() string
	Delay()
	Done() bool
}

func GarbleLeft

func GarbleLeft(s string, iters int, delay time.Duration) Animation

func GarbleLeftSimple

func GarbleLeftSimple(s string) Animation

func GarbleRight

func GarbleRight(s string, iters int, delay time.Duration) Animation

func GarbleRightSimple

func GarbleRightSimple(s string) Animation

func None

func None(s string) Animation

func SlideInLeft

func SlideInLeft(s string) Animation

func SlideInLeftX

func SlideInLeftX(s string, delay time.Duration) Animation

func SlideInRight

func SlideInRight(s string) Animation

func SlideOutLeft

func SlideOutLeft(s string) Animation

func SlideOutRight

func SlideOutRight(s string) Animation

func SlideOutRightX

func SlideOutRightX(s string, delay time.Duration) Animation

type GarbleAnimation

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

func (*GarbleAnimation) Content

func (g *GarbleAnimation) Content() string

func (*GarbleAnimation) Delay

func (g *GarbleAnimation) Delay()

func (*GarbleAnimation) Done

func (g *GarbleAnimation) Done() bool

func (*GarbleAnimation) Width

func (g *GarbleAnimation) Width(width int)

type NoAnimation

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

func (*NoAnimation) Content

func (n *NoAnimation) Content() string

func (*NoAnimation) Delay

func (n *NoAnimation) Delay()

func (*NoAnimation) Done

func (n *NoAnimation) Done() bool

func (*NoAnimation) Width

func (n *NoAnimation) Width(width int)

type SlideAnimation

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

func (*SlideAnimation) Content

func (s *SlideAnimation) Content() string

func (*SlideAnimation) Delay

func (s *SlideAnimation) Delay()

func (*SlideAnimation) Done

func (s *SlideAnimation) Done() bool

func (*SlideAnimation) Width

func (s *SlideAnimation) Width(width int)

Jump to

Keyboard shortcuts

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