Documentation ¶
Overview ¶
Package pixelcolor contains common color formats.
Index ¶
- Variables
- func ToXRGB1555(c color.Color) color.Color
- type ARGB1555
- type ARGB2101010
- type ARGB2222
- type ARGB3332
- type ARGB4444
- type ARGB6565
- type ARGB8888
- type Bit
- type RGB332
- type RGB565
- type RGB888
- type RGBA1010102
- type RGBA2222
- type RGBA3323
- type RGBA4444
- type RGBA5551
- type RGBA5656
- type RGBX5551
- type XRGB1555
Constants ¶
This section is empty.
Variables ¶
var ( BitModel = color.ModelFunc(bitModel) RGB332Model = color.ModelFunc(rgb332Model) RGB565Model = color.ModelFunc(rgb565Model) RGB888Model = color.ModelFunc(rgb888Model) RGBA2222Model = color.ModelFunc(rgba2222Model) RGBA3323Model = color.ModelFunc(rgba3323Model) RGBA4444Model = color.ModelFunc(rgba4444Model) RGBA5551Model = color.ModelFunc(rgba5551Model) RGBX5551Model = color.ModelFunc(rgbx5551Model) RGBA5656Model = color.ModelFunc(rgba5656Model) RGBA8888Model = color.RGBAModel RGBA1010102Model = color.ModelFunc(rgba1010102Model) ARGB1555Model = color.ModelFunc(argb1555Model) ARGB2222Model = color.ModelFunc(argb2222Model) ARGB3332Model = color.ModelFunc(argb3332Model) ARGB4444Model = color.ModelFunc(argb4444Model) ARGB6565Model = color.ModelFunc(argb6565Model) ARGB8888Model = color.ModelFunc(argb8888Model) ARGB2101010Model = color.ModelFunc(argb2101010Model) XRGB1555Model = color.ModelFunc(xrgb1555Model) )
Color models supported by this package.
Functions ¶
Types ¶
type ARGB1555 ¶
type ARGB1555 uint16
ARGB1555 is a 16-bit RGB color with alpha channel.
func ToARGB1555 ¶
type ARGB2101010 ¶
type ARGB2101010 uint32
ARGB2101010 is a 32-bit RGB color with alpha channel.
func ToARGB2101010 ¶
func ToARGB2101010(c color.Color) ARGB2101010
func (ARGB2101010) RGBA ¶
func (c ARGB2101010) RGBA() (r, g, b, a uint32)
type ARGB2222 ¶
type ARGB2222 uint8
ARGB2222 is a 8-bit RGB color with alpha channel.
func ToARGB2222 ¶
type ARGB3332 ¶
type ARGB3332 uint16
ARGB3332 is a 11-bit RGB color with alpha channel.
func ToARGB3332 ¶
type ARGB4444 ¶
type ARGB4444 uint16
ARGB4444 is a 16-bit RGB color with alpha channel.
func ToARGB4444 ¶
type ARGB6565 ¶
type ARGB6565 uint32
ARGB6565 is a 22-bit RGB color with alpha channel.
func ToARGB6565 ¶
type ARGB8888 ¶
type ARGB8888 uint32
ARGB8888 is a 32-bit RGB color with alpha channel.
func ToARGB8888 ¶
type RGBA1010102 ¶
type RGBA1010102 uint32
RGBA1010102 is a 32-bit RGB color with alpha channel.
func ToRGBA1010102 ¶
func ToRGBA1010102(c color.Color) RGBA1010102
func (RGBA1010102) RGBA ¶
func (c RGBA1010102) RGBA() (r, g, b, a uint32)
type RGBA2222 ¶
type RGBA2222 uint8
RGBA2222 is a 8-bit RGB color with alpha channel.
func ToRGBA2222 ¶
type RGBA3323 ¶
type RGBA3323 uint16
RGBA3323 is a 8-bit RGB color with alpha channel.
func ToRGBA3323 ¶
type RGBA4444 ¶
type RGBA4444 uint16
RGBA4444 is a 16-bit RGB color with alpha channel.
func ToRGBA4444 ¶
type RGBA5551 ¶
type RGBA5551 uint16
RGBA5551 is a 16-bit RGB color with alpha channel.
func ToRGBA5551 ¶
type RGBA5656 ¶
type RGBA5656 uint32
RGBA5656 is a 22-bit RGB color with alpha channel.
func ToRGBA5656 ¶
type RGBX5551 ¶
type RGBX5551 uint16
RGBX5551 is a 16-bit RGB color without alpha channel.