[Zope] Hexcolors and DTML

Peter Bengtsson peter@grenna.net
Sun, 1 Oct 2000 00:23:12 +0100


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?