Clutter::Cogl::Color(3pm)

Clutter::Cogl::Color3pm

Cogl color representation

Overview

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.

From libclutter-perl 1.002-1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.