Clutter::Color.3pm

Langue: en

Autres versions - même langue

Version: 2008-02-20 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

Clutter::Color

DESCRIPTION

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)


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

$red (unsigned)
$green (unsigned)
$blue (unsigned)
$alpha (unsigned)

color = $a->add ($b)


color = $a->add ($b)

$b (Clutter::Color)

integer = $color->alpha


integer = $color->alpha


oldvalue = $color->alpha ($newvalue)


oldvalue = $color->alpha ($newvalue)

$newvalue (integer)

integer = $color->blue


integer = $color->blue


oldvalue = $color->blue ($newvalue)


oldvalue = $color->blue ($newvalue)

$newvalue (integer)

color = $color->darken


color = $color->darken


boolean = $a->equal ($b)


boolean = $a->equal ($b)

$b (Clutter::Color)

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


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

$hue (integer)
$luminance (integer)
$saturation (integer)

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

$pixel (unsigned)

integer = $color->green


integer = $color->green


oldvalue = $color->green ($newvalue)


oldvalue = $color->green ($newvalue)

$newvalue (integer)

color = $color->lighten


color = $color->lighten


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

$str (string)

integer = $color->red


integer = $color->red


oldvalue = $color->red ($newvalue)


oldvalue = $color->red ($newvalue)

$newvalue (integer)

color = $color->shade ($factor)


color = $color->shade ($factor)

$factor (double)

color = $a->subtract ($b)


color = $a->subtract ($b)

$b (Clutter::Color)

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


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


unsigned = $color->to_pixel


unsigned = $color->to_pixel


string = $color->to_string


string = $color->to_string


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


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

SEE ALSO

Clutter, Glib::Boxed Copyright (C) 2006 OpenedHand Ltd.

This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Library version 2.1, or under the terms of the Artistic License. See Clutter for the full copyright notice.