NAME
Clutter::Cogl::Color - COGL Color representation
DESCRIPTION
Colors in COGL are described as arrays of four values, one for each channel of the RGBA representation.
The values can either be expressed as a byte value, going from 0 to 255, or as normalized floating point values, between 0 and 1.
METHODS
(red, green, blue, alpha) = Clutter::Cogl::Color->premultiply ($color)
- •
-
$color(array of R, G, B, A values)
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.
SEE ALSO
Clutter
COPYRIGHT
Copyright (C) 2006, 2007, 2008 OpenedHand Ltd
Copyright (C) 2009 Intel Corporation
This module is free software; you can redistribute it and/or modify it under the terms of either:
- •
-
the GNU Lesser General Public Library version 2.1; or
- •
-
the Artistic License, version 2.0.
See Clutter for the full copyright notice.