Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConvertibleColor ¶
type ConvertibleColor interface { // HSV returns Hue and Saturation, converted from an internal format if required. HSV() (float64, float64, float64) // XYY returns X and Y in the CIE 1931 colour space, converted from an internal format if required. XYY() (float64, float64, float64) // RGB returns colour using 8 bit values, converted from an internal format if required. RGB() (uint8, uint8, uint8) // NativeColorspace returns the native colour space of the colour. NativeColorspace() NativeColorspace }
ConvertibleColor is an interface that allows acceptance of a color implementation that supports modes required by a device.
type HSVColor ¶
func (HSVColor) NativeColorspace ¶
func (c HSVColor) NativeColorspace() NativeColorspace
type NativeColorspace ¶
type NativeColorspace uint8
NativeColorspace describes the native color space of a convertible color.
const ( // HueSat the color is represented as Hue and saturation of the sRGB colorspace. HueSat NativeColorspace = 0 // XYY the color is represented as the XYY coordinates fo the CIE 1931 colorspace. XYY NativeColorspace = 1 // SRGB the color is represented as red, green and blue in the screen colorspace. SRGB NativeColorspace = 2 )
type SRGBColor ¶
func (SRGBColor) NativeColorspace ¶
func (c SRGBColor) NativeColorspace() NativeColorspace
type XYColor ¶
func (XYColor) NativeColorspace ¶
func (c XYColor) NativeColorspace() NativeColorspace
Click to show internal directories.
Click to hide internal directories.