go1.20.5
GoThrough

color.Alpha16Model

// Models for the standard color types. var Alpha16Model = ModelFunc(alpha16Model)

color.AlphaModel

// Models for the standard color types. var AlphaModel = ModelFunc(alphaModel)

color.Black

// Standard colors. var Black = Gray16{0}

color.CMYKModel

// CMYKModel is the Model for CMYK colors. var CMYKModel = ModelFunc(cmykModel)

color.Gray16Model

// Models for the standard color types. var Gray16Model = ModelFunc(gray16Model)

color.GrayModel

// Models for the standard color types. var GrayModel = ModelFunc(grayModel)

color.NRGBA64Model

// Models for the standard color types. var NRGBA64Model = ModelFunc(nrgba64Model)

color.NRGBAModel

// Models for the standard color types. var NRGBAModel = ModelFunc(nrgbaModel)

color.NYCbCrAModel

// NYCbCrAModel is the Model for non-alpha-premultiplied Y'CbCr-with-alpha // colors. var NYCbCrAModel = ModelFunc(nYCbCrAModel)

color.Opaque

// Standard colors. var Opaque = Alpha16{0xffff}

color.RGBA64Model

// Models for the standard color types. var RGBA64Model = ModelFunc(rgba64Model)

color.RGBAModel

// Models for the standard color types. var RGBAModel = ModelFunc(rgbaModel)

color.Transparent

// Standard colors. var Transparent = Alpha16{0}

color.White

// Standard colors. var White = Gray16{0xffff}

color.YCbCrModel

// YCbCrModel is the Model for Y'CbCr colors. var YCbCrModel = ModelFunc(yCbCrModel)

color.Color

// Color can convert itself to alpha-premultiplied 16-bits per channel RGBA. // The conversion may be lossy. type Color interface { // RGBA returns the alpha-premultiplied red, green, blue and alpha values // for the color. Each value ranges within [0, 0xffff], but is represented // by a uint32 so that multiplying by a blend factor up to 0xffff will not // overflow. // // An alpha-premultiplied color component c has been scaled by alpha (a), // so has valid values 0 <= c <= a. RGBA() (r uint32, g uint32, b uint32, a uint32) }

color.Model

// Model can convert any Color to one from its own color model. The conversion // may be lossy. type Model interface { Convert(c Color) Color }

color.CMYKToRGB

// CMYKToRGB converts a CMYK quadruple to an RGB triple. func CMYKToRGB(c uint8, m uint8, y uint8, k uint8) (uint8, uint8, uint8)

color.ModelFunc

// ModelFunc returns a Model that invokes f to implement the conversion. func ModelFunc(f func(Color) Color) Model

color.RGBToCMYK

// RGBToCMYK converts an RGB triple to a CMYK quadruple. func RGBToCMYK(r uint8, g uint8, b uint8) (uint8, uint8, uint8, uint8)

color.RGBToYCbCr

// RGBToYCbCr converts an RGB triple to a Y'CbCr triple. func RGBToYCbCr(r uint8, g uint8, b uint8) (uint8, uint8, uint8)

color.YCbCrToRGB

// YCbCrToRGB converts a Y'CbCr triple to an RGB triple. func YCbCrToRGB(y uint8, cb uint8, cr uint8) (uint8, uint8, uint8)