Clutter::Color(3pm)
NAME
Clutter::Color - wrapper for ClutterColor
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)
- o $red (unsigned)
- o $green (unsigned)
- o $blue (unsigned)
- o $alpha (unsigned)
- color = $a->add ($b)
- o $b (Clutter::Color)
- integer = $color->alpha
oldvalue = $color->alpha ($newvalue) - o $newvalue (integer)
- integer = $color->blue
oldvalue = $color->blue ($newvalue) - o $newvalue (integer)
- color = $color->darken
boolean = $a->equal ($b) - o $b (Clutter::Color)
- color = Clutter::Color->from_hls ($hue, $luminance, $saturation)
- o $hue (double)
- o $luminance (double)
- o $saturation (double)
- color = Clutter::Color->from_pixel ($pixel)
- o $pixel (unsigned)
- color = Clutter::Color->from_string ($str)
- o $str (string)
- integer = $color->green
oldvalue = $color->green ($newvalue) - o $newvalue (integer)
- color = $color->lighten
integer = $color->red
oldvalue = $color->red ($newvalue) - o $newvalue (integer)
- color = $color->shade ($factor)
- o $factor (double)
- color = $a->subtract ($b)
- o $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::Boxed
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:
o the GNU Lesser General Public Library version 2.1; or
o the Artistic License, version 2.0.
- See Clutter for the full copyright notice.