TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG-DEVEL:237] Java Color from HTML color?
Bob Tanner <tanner@real-time.com> writes:
> Anyone niffy utilities to convert from HTML hex colors to Java's colors?
>
> I am sure someone else has had to write one of these.
Well java.awt.Color's constructor takes 3 parameters, rgb. HTML colors are in
hex RRGGBB. Should be an obvious translation.
--
Jon Schewe
http://eggplant.mtu.net/~jpschewe
schewe@tcfreenet.org