color

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapping

type Mapping interface {
	Map(counts []uint64) []color.NRGBA
}

* Maps a distribution to a series of colors.

func DefaultMapping

func DefaultMapping() Mapping

* Create a new default color mapping.

func SimpleMapping

func SimpleMapping(red uint8, green uint8, blue uint8) Mapping

* Create a new simple color mapping, which maps all cells with hits to a * predefined color.

Jump to

Keyboard shortcuts

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