colorextra

package
v0.0.0-...-244c41e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertUint8ToUint32Color

func ConvertUint8ToUint32Color(in uint8) uint32

Types

type HSLColor

type HSLColor struct {
	H float64 // 0 <= H <= 360
	S float64 // 0 <= S <= 1
	L float64 // 0 <= L <= 1
	A uint8
}

func NewHSLColor

func NewHSLColor(h, s, l float64, a uint8) (HSLColor, error)

func NewHSLFromRGB

func NewHSLFromRGB(rgb color.RGBA) HSLColor

func (HSLColor) RGBA

func (hsl HSLColor) RGBA() (uint32, uint32, uint32, uint32)

type HSVColor

type HSVColor struct {
	H float64 // 0 <= H <= 360
	S float64 // 0 <= S <= 1
	V float64 // 0 <= V <= 1
	A uint8
}

func NewHSVColor

func NewHSVColor(h, s, v float64, a uint8) (HSVColor, error)

func NewHSVFromRGB

func NewHSVFromRGB(rgb color.RGBA) HSVColor

Jump to

Keyboard shortcuts

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