From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/19602 Path: main.gmane.org!not-for-mail From: Bill White Newsgroups: gmane.emacs.gnus.general Subject: Re: HTML foreground and background colors being the same... poll time! Date: 03 Dec 1998 08:56:16 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: References: <199812031400.JAA09195@kramer.bp.aventail.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 X-Trace: main.gmane.org 1035157923 12461 80.91.224.250 (20 Oct 2002 23:52:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:52:03 +0000 (UTC) Cc: w3-beta@indiana.edu, ding@gnus.org Return-Path: Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id KAA29473 for ; Thu, 3 Dec 1998 10:01:40 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.9.1/8.9.1) with ESMTP id IAA19704; Thu, 3 Dec 1998 08:56:57 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 03 Dec 1998 08:56:53 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id IAA16352 for ; Thu, 3 Dec 1998 08:56:38 -0600 (CST) Original-Received: from dragonfly.wolfram.com (root@dragonfly.wolfram.com [140.177.10.12]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA29128 for ; Thu, 3 Dec 1998 09:56:31 -0500 (EST) Original-Received: from wolfram.com (billw@banshee.wolfram.com [140.177.4.4]) by dragonfly.wolfram.com (8.8.8/8.8.8) with ESMTP id IAA24400; Thu, 3 Dec 1998 08:56:22 -0600 (CST) Original-Received: (from billw@localhost) by wolfram.com (8.8.5/8.8.5) id IAA24519; Thu, 3 Dec 1998 08:56:17 -0600 Original-To: wmperry@aventail.com In-Reply-To: "William M. Perry"'s message of "Thu, 3 Dec 1998 09:00:21 -0500" User-Agent: Gnus/5.070062 (Pterodactyl Gnus v0.62) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 26 Xref: main.gmane.org gmane.emacs.gnus.general:19602 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:19602 In message <199812031400.JAA09195@kramer.bp.aventail.com>, "William M. Perry" wrote: > b is pretty easy to implement: > > (defun infer-contrasting-color (r g b) > (if (and (<= r 255) > (<= g 255) > (<= b 255)) > (format "#%02x%02x%02x" > (logxor r 255) > (logxor g 255) > (logxor b 255))) > (format "#%04x%04x%04x" > (logxor r 65535) > (logxor g 65535) > (logxor b 65535))) For (r g b) = (127 127 127) this would return (128 128 128) - not much contrast :-( bw -- Bill White . billw@wolfram.com . http://www.wolfram.com/~billw I have discovered a truly wonderful proof of Fermat's Last Theorem, but unfortunately this .signature is too small to contain it.