Struct
CoglColor
Description [src]
struct CoglColor {
/* No available fields */
}
A structure for holding a color definition. The contents of the CoglColor structure are private and should never by accessed directly.
Functions
cogl_color_init_from_hsl
Converts a color expressed in HLS (hue, luminance and saturation)
values into a CoglColor
.
Instance methods
cogl_color_get_alpha_float
Retrieves the alpha channel of color
as a floating point
value between 0.0 and 1.0
cogl_color_get_blue_float
Retrieves the blue channel of color
as a floating point
value between 0.0 and 1.0
cogl_color_get_green_float
Retrieves the green channel of color
as a floating point
value between 0.0 and 1.0
cogl_color_get_red_float
Retrieves the red channel of color
as a floating point
value between 0.0 and 1.0
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.
cogl_color_unpremultiply
Converts a pre-multiplied color to a non-premultiplied color. For example, semi-transparent red is (0.5, 0, 0, 0.5) when premultiplied and (1.0, 0, 0, 0.5) when non-premultiplied.