Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NGrayAlphaModel color.Model = color.ModelFunc(nGrayAlphaModel) R8Model color.Model = color.ModelFunc(r8Model) RGBModel color.Model = color.ModelFunc(rgbModel) RGB565Model color.Model = color.ModelFunc(rgb565Model) NRGBA4444Model color.Model = color.ModelFunc(nRGBA4444Model) NRGBA5551Model color.Model = color.ModelFunc(nRGBA5551Model) NBGRA8888Model color.Model = color.ModelFunc(nBGRA8888Model) )
Models for GL color types
Functions ¶
This section is empty.
Types ¶
type NBGRA8888 ¶
type NBGRA8888 struct {
// contains filtered or unexported fields
}
NBGRA8888 represents a 64-bit non-alpha-premultiplied color, having 8 bits for each of red, green, blue and alpha.
type NGrayAlpha ¶
type NGrayAlpha struct {
G, A uint8
}
NGrayAlpha represents a 16-bit non-alpha-premultiplied color, having 8 bits for each of grayscale and alpha.
func (NGrayAlpha) RGBA ¶
func (c NGrayAlpha) RGBA() (r, g, b, a uint32)
type NRGBA4444 ¶
type NRGBA4444 struct {
Value uint16
}
NRGBA4444 represents a 16-bit non-alpha-premultiplied color, having 4 bits for each of red, green, blue and alpha.
type NRGBA5551 ¶
type NRGBA5551 struct {
Value uint16
}
NRGBA5551 represents a 16-bit non-alpha-premultiplied color, having 5 bits for each of red, green, blue and 1 bit for alpha.
Click to show internal directories.
Click to hide internal directories.