Re: Re: Re: [PHP-GTK] CList Code - Alternating row/field colors
| From: | Andrei Zmievski | Date: | Fri, 19 Oct 2001 01:55:59 +0000 |
| Subject: | Re: Re: Re: [PHP-GTK] CList Code - Alternating row/field colors | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-331@lists.php.net to get a copy of this message | ||
At 02:49 AM 10/19/01 +0100, Steph wrote:
What Markus omits to say because it's obvious to him (& not necessarily anyone else) is that 65535 is equal to 256*(256-1) ie it's the harsh end of the spectrum for any of the RGB colours, and easier to code than you'd expect ;)You can pass hex string to GdkColor constructor or even a color name: new GdkColor('#ff00ff'); new GdkColor('LightOrange'); The color names are the ones defined by the X server. There should be a list of them on your filesystem somewhere. -Andrei