[Zope] Hexcolors and DTML
Tim Cook
twcook@iswt.com
Sat, 30 Sep 2000 21:59:40 -0500
Peter Bengtsson wrote:
>
> This might be a math-python question but...
> All I want to do is to print out the hexvalue of all black/white colors for a "fading HTML table".
>
> #ffffff, #fefefe, #fdfdfd, ... #020202, #010101, #000000
>
> I can do a loop from 1 to 255, but I don't know where to go from there.
>
> BTW, are there non-websafe greycolors? Can the loop be for only websafe ones?
Not an expert on this at all. But, I believe that all the websafe
colors are defined in pairs of the following hex digits. 00, 33,
66, 99, cc, & ff. So only colors that are composed of those
pairs are websafe.
If that's true then yes there are shades of gray that are not web
safe. Checkout this link for more info.
http://www.reallybig.com/visibone/lab/index.shtml
Therefore there are only six shades of websafe gray. 000000,
333333, 666666, 999999, cccccc, & ffffff.
Put those in a list?
-- Tim Cook --
Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
* It's easy to stop making mistakes. Just stop having ideas. *
FreePM Project Coordinator http://www.freepm.org
OSHCA Founding Supporter http://www.oshca.org