Struct
CoglColor
since: 14
Description [src]
struct CoglColor {
/* No available fields */
}
A generic color definition
CoglColor
is a simple structure holding the definition of a color such
that it can be efficiently used by GL.
Available since: 14
Functions
cogl_color_init_from_hsl
Converts a color expressed in HLS (hue, luminance and saturation)
values into a CoglColor
.
since: 14
Instance methods
cogl_color_get_alpha
Retrieves the alpha channel of color
as a fixed point
value between 0 and 1.0.
since: 14
cogl_color_get_blue
Retrieves the blue channel of color
as a fixed point
value between 0 and 1.0.
since: 14
cogl_color_get_green
Retrieves the green channel of color
as a fixed point
value between 0 and 1.0.
since: 14
cogl_color_get_red
Retrieves the red channel of color
as a fixed point
value between 0 and 1.0.
since: 14
cogl_color_premultiply
Converts a non-premultiplied color to a pre-multiplied color. For example, semi-transparent red is (1.0, 0, 0, 0.5) when non-premultiplied and (0.5, 0, 0, 0.5) when premultiplied.
since: 14