colorrange

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package colorrange provides distributions that accept and return color.Colors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Range

type Range interface {
	Poll() color.Color
	EnforceRange(color.Color) color.Color
	Percentile(f float64) color.Color
}

Range represents a range of colors

func NewLinear

func NewLinear(minColor, maxColor color.Color) Range

NewLinear returns a linear color distribution between min and maxColor

Jump to

Keyboard shortcuts

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