palette

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 13 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) HalftonePattern added in v1.1.280

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

HalftonePattern computes the Halftone pattern for this palette.

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