Re: background colors in apps



On 27 June, 1999 - Bob Taylor sent me these 1,6K bytes:

> In message <Pine.LNX.3.96.990627225708.15182B-100000@quoll.daa.com.au>, 
> James H
> enstridge writes:
> cc:  gnome-list@gnome.org
> >     bg[NORMAL] = { 0.rr, 0.gg, 0.bb }
> >     bg[ACTIVE] = ...
> Excuse me for an ignorant question. Exactly *what* does 0.rr, 0.gg, 0.bb
> mean? I know it's red, green and blue but I am only familiar with the
> decimal and hex formats. A conversion formula from decimal/hex to this
> would be helpful.

It's a range from 0.0 (nothing from that component) to 1.0 (full)..

Hex works too...
bg[NORMAL] = "#rrggbb"
...

/Tomas
-- 
Tomas Ögren, stric@ing.umu.se, http://www.ing.umu.se/~stric/
|- Student at Computing Science, University of Umeå
`- Sysadmin at {cs,ing,acc}.umu.se



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]