colors

package
v0.0.0-...-a6f644f Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const MaxColorModes = 3

Variables

This section is empty.

Functions

func ParseHex

func ParseHex(s string) (*colorful.Color, error)

Parses hex strings into colors

Types

type GradientTable

type GradientTable struct {
	Mode int
	// contains filtered or unexported fields
}

func (*GradientTable) AddToTable

func (gt *GradientTable) AddToTable(colorString string, pos float64)

func (*GradientTable) GetInterpolatedColorFor

func (gt *GradientTable) GetInterpolatedColorFor(t float64) colorful.Color

Get a blended color

func (*GradientTable) GetTable

func (gt *GradientTable) GetTable() []gradientTableEntry

func (*GradientTable) Randomise

func (gt *GradientTable) Randomise()

Jump to

Keyboard shortcuts

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