colors

package module
v0.0.0-...-28c74c7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CIE2000

func CIE2000(lab1, lab2 *LAB) float64

func L2

func L2(lab1, lab2 *LAB) float64

func ToLAB

func ToLAB(rgbImage [][]RGB) [][]LAB

Types

type CMYK

type CMYK struct {
	C, M, Y, K float64
}

type HSL

type HSL struct {
	H, S, L float64
}

type HSV

type HSV struct {
	H, S, V float64
}

type LAB

type LAB struct {
	L, A, B float64
}

type RGB

type RGB struct {
	R, G, B int
}

func (*RGB) Normalized

func (rgb *RGB) Normalized() (float64, float64, float64)

func (*RGB) ToHSL

func (rgb *RGB) ToHSL() HSL

func (*RGB) ToHSV

func (rgb *RGB) ToHSV() HSV

func (*RGB) ToLAB

func (rgb *RGB) ToLAB() LAB

func (*RGB) ToXYZ

func (rgb *RGB) ToXYZ() XYZ

type RGBA

type RGBA struct {
	R, G, B, A int
}

type XYZ

type XYZ struct {
	X, Y, Z float64
}

func (*XYZ) ToLAB

func (xyz *XYZ) ToLAB() LAB

Jump to

Keyboard shortcuts

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