palette

package
v1.1.166 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names() string

Names returns the names of all palettes, in quoted comma separated for, for inclusion in a flag description.

Types

type Palette

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

Palette encapsulates a color palette.

func ByName

func ByName(name string) *Palette

ByName returns the PalData for the given palette. Do not modify the returned object.

func (*Palette) BayerPattern

func (p *Palette) BayerPattern(size int) []float32

BayerPattern computes the Bayer pattern for this palette.

func (*Palette) BayerScale

func (p *Palette) BayerScale() float64

func (*Palette) CheckProtectedColors added in v1.1.31

func (p *Palette) CheckProtectedColors(base *Palette, lutSize, bayerSize int)

func (*Palette) ToLUT

func (p *Palette) ToLUT(img *ebiten.Image) (int, int)

Jump to

Keyboard shortcuts

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