Re: [Zope] Hexcolors and DTML
On Sun, 01 Oct 2000, 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". > > #ff, #fefefe, #fdfdfd, ... #020202, #010101, #00 > > I can do a loop from 1 to 255, but I don't know where to go from there. > ">BLAH > BTW, are there non-websafe greycolors? Can the loop be for only websafe > ones? > According to a recent study, there are approximately 13 'web safe' colours, out of the full 16,777,216. Can you be bothered restricting yourself to support the 'lowest common denominator' ? If you really want to know what they are, do a quick search back on www.slashdot.org for the link. Have a better one, Curtis Maloney ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Hexcolors and DTML
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". > > #ff, #fefefe, #fdfdfd, ... #020202, #010101, #00 > > 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. 00, 33, 66, 99, cc, & ff. 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 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Hexcolors and DTML
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". #ff, #fefefe, #fdfdfd, ... #020202, #010101, #00 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? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )