W3C home > Mailing lists > Public > www-style@w3.org > August 1998

Re: The color of inclusions via OBJECT (was RE: OBJECT, inheritance, and rendering)

From: Simon Richter <geier@psi5.com>
Date: Sat, 01 Aug 1998 16:53:30 +0200
Message-ID: <35C32BE9.926C20F9@psi5.com>
To: Walter Ian Kaye <walter@natural-innovations.com>
CC: braden@endoframe.com, "'Todd Fahrner'" <fahrner@pobox.com>, www-style@w3.org, www-html@w3.org
Walter Ian Kaye wrote:

> Well, algorithmically. I once wrote a function to simply get the "opposite"
> color numerically which worked for most colors, but for those whose opposite
> is almost the same (what's the opposite of 50%?), the foreground and background
> colors were difficult to contrast. There would have to be some pre-decided
> "opposites" for colors in the middle between light and dark.

What about using black if the background color would be brighter than 50% on a b/w
screen (RGB mix 30:60:10), and white otherwise. IMHO black on lite green looks
better than pink on light green... :-)

CU
   Simon
Received on Saturday, 1 August 1998 10:53:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:55 GMT