[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
256 Terminal Color Question ...
From: |
Ben Duncan |
Subject: |
256 Terminal Color Question ... |
Date: |
Thu, 01 Oct 2009 08:57:22 -0500 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090812) |
Ok, am back on my PYapp project, and have been trying to figure something out.
init_color defines the palette RGB as a value between 0 and 1000.
I am looking at 256 Web Safe Colors chart and find out the RGB values.
The RGB values are listed in HEX as well as Decimal.
(see: http://en.wikipedia.org/wiki/Web_colors )
My question is how do I convert those RGB values to the the
correct NUMERIC value value required by init_color to come out
the the color chart as listed?
Thanks as always ...
--
Ben Duncan - Business Network Solutions, Inc. 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor
- 256 Terminal Color Question ...,
Ben Duncan <=