Rechercher une page de manuel
Clutter::Color.3pm
Langue: en
Version: 2010-08-25 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- DESCRIPTION
- HIERARCHY
- METHODS
- color = Clutter::Color->new ($red=0, $green=0, $blue=0, $alpha=0)
- color = $a->add ($b)
- integer = $color->alpha
- oldvalue = $color->alpha ($newvalue)
- integer = $color->blue
- oldvalue = $color->blue ($newvalue)
- color = $color->darken
- boolean = $a->equal ($b)
- color = Clutter::Color->from_hls ($hue, $luminance, $saturation)
- color = Clutter::Color->from_pixel ($pixel)
- color = Clutter::Color->from_string ($str)
- integer = $color->green
- oldvalue = $color->green ($newvalue)
- color = $color->lighten
- integer = $color->red
- oldvalue = $color->red ($newvalue)
- color = $color->shade ($factor)
- color = $a->subtract ($b)
- (hue, luminance, saturation) = $color->to_hls
- unsigned = $color->to_pixel
- string = $color->to_string
- (red, green, blue, alpha) = $color->values
- SEE ALSO
- COPYRIGHT
NAME
Clutter::Color - wrapper for ClutterColorDESCRIPTION
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
SEE ALSO
Clutter, Glib::BoxedCOPYRIGHT
Copyright (C) 2006, 2007, 2008 OpenedHand LtdCopyright (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.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre