cylinder

package
v0.0.0-...-14c2223 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorModel

type ColorModel = func(angle, radius, height float64) colorful.Color

type DistanceFunc

type DistanceFunc = func(c1, c2 colorful.Color) float64

type Palette

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

func NewPalette

func NewPalette(angleShift, baseRadius, baseHeight float64, model ColorModel, dist DistanceFunc, tweaks map[byte][3]byte) (*Palette, error)

func (*Palette) Nearest

func (p *Palette) Nearest(c color.Color) byte

func (*Palette) Select

func (p *Palette) Select(val byte) [3]byte

Jump to

Keyboard shortcuts

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