color

package
v0.0.0-...-692212b Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorModel color.Model = color.ModelFunc(colorModel)
View Source
var HSLModel color.Model = color.ModelFunc(hslModel)

Functions

This section is empty.

Types

type Color

type Color struct {
	R, G, B, A uint8
}

func FromBgrUint32

func FromBgrUint32(c uint32) Color

func Parse

func Parse(s string) Color

func (Color) NRGBAf

func (cr Color) NRGBAf() (r, g, b, a float64)

func (Color) RGBA

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

func (Color) String

func (cr Color) String() string

type HSL

type HSL struct {
	H, S, L, A float64
}

func (HSL) RGBA

func (hsl HSL) RGBA() (r, g, b, a uint32)

Jump to

Keyboard shortcuts

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