palette

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fader

type Fader interface {
	Convert(c color.Color) color.Color
	Index(c color.Color) int
	AddColor(c color.Color, pos int)
	AddLastColor(c color.Color)
	GetIncrements() []float64
	Fade(step float64) color.Color
}

Fader interface to fade colors in a palette

func NewFader

func NewFader(palette color.Palette, granularity int, wrapping bool) Fader

NewFader creates a Fader from a palette

type Palette

type Palette interface {
	sort.Interface
	Add(c colorful.Color, pos float64)
	Blend(pos float64) colorful.Color
}

Palette is the palette interface

func NewPalette

func NewPalette() Palette

NewPalette generates a new Palette

Jump to

Keyboard shortcuts

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