colormapping

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorMapping

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

func NewColorMapping

func NewColorMapping() *ColorMapping

func (*ColorMapping) GetColor

func (m *ColorMapping) GetColor(name string, param2 int) *color.RGBA

func (*ColorMapping) GetColors

func (m *ColorMapping) GetColors() map[string]*color.RGBA

func (*ColorMapping) LoadColorMapping

func (m *ColorMapping) LoadColorMapping(buffer []byte) (int, error)

func (*ColorMapping) LoadPalette

func (m *ColorMapping) LoadPalette(palettefile, nodelistfile []byte) error

func (*ColorMapping) ReadColorMapping added in v1.0.1

func (m *ColorMapping) ReadColorMapping(r io.Reader) (int, error)

type Palette

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

func NewPalette

func NewPalette(imagefile []byte) (*Palette, error)

func (*Palette) GetColor

func (m *Palette) GetColor(param2 int) *color.RGBA

Jump to

Keyboard shortcuts

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