Clutter::Color(3pm)

Clutter::Color3pm

Wrapper for cluttercolor

Overview

Color representation in RGBA format. Every color component is 8 bits wide.

Hierarchy

  Glib::Boxed
  +----Clutter::Color

Methods

color = Clutter::Color->new ($red=0, $green=0, $blue=0, $alpha=0)

•

$red (unsigned)

•

$green (unsigned)

•

$blue (unsigned)

•

$alpha (unsigned)

color = $a->add ($b)

•

$b (Clutter::Color)

integer = $color->alpha

oldvalue = $color->alpha ($newvalue)

•

$newvalue (integer)

integer = $color->blue

oldvalue = $color->blue ($newvalue)

•

$newvalue (integer)

color = $color->darken

boolean = $a->equal ($b)

•

$b (Clutter::Color)

color = Clutter::Color->from_hls ($hue, $luminance, $saturation)

•

$hue (double)

•

$luminance (double)

•

$saturation (double)

color = Clutter::Color->from_pixel ($pixel)

•

$pixel (unsigned)

color = Clutter::Color->from_string ($str)

•

$str (string)

integer = $color->green

oldvalue = $color->green ($newvalue)

•

$newvalue (integer)

color = $color->lighten

integer = $color->red

oldvalue = $color->red ($newvalue)

•

$newvalue (integer)

color = $color->shade ($factor)

•

$factor (double)

color = $a->subtract ($b)

•

$b (Clutter::Color)

(hue, luminance, saturation) = $color->to_hls

unsigned = $color->to_pixel

string = $color->to_string

(red, green, blue, alpha) = $color->values

Releases

2 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0
  2. 6.0

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