color

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rgb

type Rgb struct {
	R, G, B float32
}

func CorrectColor

func CorrectColor(rgb Rgb, corrections Rgb) (corrected Rgb)

func InterpolateColor

func InterpolateColor(color1 Rgb, color2 Rgb, fraction float32) (interpolated Rgb)

func InterpolateColors

func InterpolateColors(colors1 []Rgb, colors2 []Rgb, step int, steps int) (colors []Rgb)

Jump to

Keyboard shortcuts

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