graphics

package
v0.0.0-...-f4fbe18 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: CC0-1.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frameset

type Frameset struct {
	Images  []*ebiten.Image
	Ticker  *time.Ticker
	Current int
}

Frameset is a set of images with a ticker to switch them.

func NewFramesetMulti

func NewFramesetMulti(speed time.Duration, frames ...*ebiten.Image) *Frameset

func NewFramesetSingle

func NewFramesetSingle(frame *ebiten.Image) *Frameset

func (*Frameset) Image

func (s *Frameset) Image() *ebiten.Image

Jump to

Keyboard shortcuts

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