colortable

package
v0.0.0-...-36de6c2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const SIZE = 64

Variables

This section is empty.

Functions

func IndexFor

func IndexFor(c color.NRGBA) int

Types

type ColorTable

type ColorTable [SIZE]color.NRGBA

func (*ColorTable) Add

func (ct *ColorTable) Add(c color.NRGBA)

func (ColorTable) Contains

func (ct ColorTable) Contains(c color.NRGBA) bool

func (ColorTable) Get

func (ct ColorTable) Get(index int) color.NRGBA

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳