Versions in this module Expand all Collapse all v1 v1.0.0 May 16, 2021 Changes in this version + var GrayAlphaModel = color.ModelFunc(grayAlphaColourModel) + var RGBModel = color.ModelFunc(rgbColourModel) + type AlphaPalette color.Palette + func (ap AlphaPalette) Convert(c color.Color) color.Color + func (ap AlphaPalette) Index(c color.Color) int + type GrayAlpha struct + A uint8 + Y uint8 + func (c GrayAlpha) RGBA() (r, g, b, a uint32) + func (c GrayAlpha) ToNRGBA() color.NRGBA64 + type HSLA struct + A uint16 + H uint16 + L uint16 + S uint16 + func RGBToHSL(cl color.Color) HSLA + func (h HSLA) RGBA() (uint32, uint32, uint32, uint32) + func (h HSLA) ToNRGBA() color.NRGBA64 + type HSVA struct + A uint16 + H uint16 + S uint16 + V uint16 + func RGBToHSV(cl color.Color) HSVA + func (h HSVA) RGBA() (uint32, uint32, uint32, uint32) + func (h HSVA) ToNRGBA() color.NRGBA64 + type IndexedAlpha struct + A uint8 + I uint8 + type RGB struct + B uint8 + G uint8 + R uint8 + func (rgb RGB) RGBA() (r, g, b, a uint32) + func (rgb RGB) ToNRGBA() color.NRGBA64