colours

package
v0.0.0-...-87f2706 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Colour

type Colour struct {
	Name    string
	Article string
	RGB     RGB
	HSV     HSV
}

func (Colour) HLV

func (c Colour) HLV(repetitions float64) (uint, uint, uint)

func (Colour) Luminance

func (c Colour) Luminance() float64

type ColourList

type ColourList []*Colour

func GetColourList

func GetColourList() (colourList ColourList, err error)

func (ColourList) Len

func (c ColourList) Len() int

func (ColourList) Less

func (c ColourList) Less(i, j int) bool

func (ColourList) Swap

func (c ColourList) Swap(i, j int)

type HSV

type HSV struct {
	H float64 // degrees: [0-1]
	S float64 // percent: [0-1]
	V float64 // percent: [0-1]
}

type RGB

type RGB struct {
	R uint8 // 8-bit val: [0-255]
	G uint8 // 8-bit val: [0-255]
	B uint8 // 8-bit val: [0-255]
}

Jump to

Keyboard shortcuts

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