W3C home > Mailing lists > Public > www-html@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, 1 Aug 1998 10:53:56 -0400 (EDT)
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... :-)

Received on Monday, 3 August 1998 15:22:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:48 UTC