Struct
ClutterColor
since: 13
Description [src]
struct ClutterColor {
guint8 red;
guint8 green;
guint8 blue;
guint8 alpha;
}
A simple type for representing colors.
A ClutterColor is expressed as a 4-tuple of values ranging from
zero to 255, one for each color channel plus one for the alpha.
The alpha channel is fully opaque at 255 and fully transparent at 0.
Structure members
redRed component, between 0 and 255
greenGreen component, between 0 and 255
blueBlue component, between 0 and 255
alphaAlpha component, between 0 and 255
Available since: 13
Functions
clutter_color_from_hls
Converts a color expressed in HLS (hue, luminance and saturation)
values into a ClutterColor.
since: 13
clutter_color_from_pixel
Converts pixel from the packed representation of a four 8 bit channel
color to a ClutterColor.
since: 13
clutter_color_from_string
Parses a string definition of a color, filling the ClutterColor.red,
ClutterColor.green, ClutterColor.blue and ClutterColor.alpha fields
of color.
since: 13
Instance methods
clutter_color_copy
Makes a copy of the color structure. The result must be freed using clutter_color_free().
since: 13
clutter_color_darken
Darkens color by a fixed amount, and saves the changed color
in result.
since: 13
clutter_color_interpolate
Interpolates between initial and final ClutterColors
using progress.
since: 13
clutter_color_lighten
Lightens color by a fixed amount, and saves the changed color
in result.
since: 13
clutter_color_to_pixel
Converts color into a packed 32 bit integer, containing
all the four 8 bit channels used by ClutterColor.
since: 13
clutter_color_to_string
Returns a textual specification of color in the hexadecimal form
since: 13