1Gtk2::Gdk::Color(3) User Contributed Perl Documentation Gtk2::Gdk::Color(3)
2
3
4
6 Gtk2::Gdk::Color
7
9 Gdk's colors are 16-bit RGB values -- that is, the red, green, and blue
10 components are integer values from 0 to 65535, with 65535 meaning full
11 saturation. If you are used to dealing with colors on the range of 0
12 to 255, just scale those numbers by a factor of 257 (yes, 257!).
13
15 Glib::Boxed
16 +----Gtk2::Gdk::Color
17
19 color = Gtk2::Gdk::Color->new ($red, $green, $blue)
20
21 * $red (unsigned)
22 * $green (unsigned)
23 * $blue (unsigned)
24
25 unsigned = $color->blue
26
27 boolean = $colora->equal ($colorb)
28
29 * $colorb (Gtk2::Gdk::Color)
30
31 unsigned = $color->green
32
33 integer = $colora->hash
34
35 color = Gtk2::Gdk::Color->parse ($spec)
36
37 * $spec (string)
38
39 unsigned = $color->pixel
40
41 unsigned = $color->red
42
44 Gtk2, Glib::Boxed
45
47 Copyright (C) 2003-2007 by the gtk2-perl team.
48
49 This software is licensed under the LGPL. See Gtk2 for a full notice.
50
51
52
53perl v5.8.8 2007-03-18 Gtk2::Gdk::Color(3)