anim

package
v0.0.0-...-bdda42b Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorCycle

func ColorCycle(c color.NRGBA) color.NRGBA

Types

type GradBox

type GradBox struct {
	Src  *image.Uniform
	Mask *image.Alpha

	Offset int
	// contains filtered or unexported fields
}

func NewGradBox

func NewGradBox(w, h int, c color.Color) (*GradBox, error)

func (*GradBox) Bounds

func (b *GradBox) Bounds() image.Rectangle

func (*GradBox) CycleColor

func (b *GradBox) CycleColor(steps int)

func (*GradBox) CycleGradient

func (b *GradBox) CycleGradient(steps int)

func (*GradBox) Draw

func (b *GradBox) Draw(dst draw.Image, r image.Rectangle, op draw.Op)

func (*GradBox) SetColor

func (b *GradBox) SetColor(c color.Color)

Jump to

Keyboard shortcuts

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