fx

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blinking

type Blinking struct {
	Frequency float64
	// contains filtered or unexported fields
}

Blinking implements a flashing effect

func NewBlinking

func NewBlinking(freq float64) *Blinking

NewBlinking returns a new Blinking instance

func (*Blinking) Draw

func (t *Blinking) Draw(draw func(pixel.Target, pixel.Matrix), tgt pixel.Target, matrix pixel.Matrix, dt float64)

type Fade

type Fade struct {
	Color pixel.RGBA
	// contains filtered or unexported fields
}

func NewFade

func NewFade(color pixel.RGBA, duration float64) *Fade

func (*Fade) To

func (t *Fade) To(win *pixelgl.Window, imd *imdraw.IMDraw, dt float64) bool

Jump to

Keyboard shortcuts

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