gcu

package
v0.0.0-...-0d6b64a Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HSLAModel color.Model = color.ModelFunc(hslaModel)
	HSVAModel color.Model = color.ModelFunc(hsvaModel)
)

Functions

func HSLToRGB

func HSLToRGB(h, s, l float32) (r, g, b float32)

func HSVToRGB

func HSVToRGB(h, s, v float32) (r, g, b float32)

func NormalizeRGBA

func NormalizeRGBA(r, g, b, a uint32) (nr, ng, nb, na float32)

func RGBLuminance

func RGBLuminance(r, g, b float32) float32

func RGBToHSL

func RGBToHSL(r, g, b float32) (h, s, l float32)

func RGBToHSV

func RGBToHSV(r, g, b float32) (h, s, v float32)

Types

type HSLA

type HSLA struct {
	H, S, L, A float32
}

func (HSLA) RGBA

func (c HSLA) RGBA() (r, g, b, a uint32)

type HSVA

type HSVA struct {
	H, S, V, A float32
}

func (HSVA) RGBA

func (c HSVA) RGBA() (r, g, b, a uint32)

Jump to

Keyboard shortcuts

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