From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/19598 Path: main.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.gnus.general Subject: Re: HTML foreground and background colors being the same... poll time! Date: 03 Dec 1998 15:37:15 +0100 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 1035157919 12427 80.91.224.250 (20 Oct 2002 23:51:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:51:59 +0000 (UTC) Cc: 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 JAA28716 for ; Thu, 3 Dec 1998 09:40:47 -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 IAA19623; Thu, 3 Dec 1998 08:38:25 -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:37:42 -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 IAA16059 for ; Thu, 3 Dec 1998 08:37:32 -0600 (CST) Original-Received: from ulysse.enst.fr (dqr8dP5K1QohgDd9nyXXF+gGKreJYDiE@inf.enst.fr [137.194.2.81]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA28533 for ; Thu, 3 Dec 1998 09:37:23 -0500 (EST) Original-Received: from metheny.enst.fr (metheny.enst.fr [137.194.204.4]) by ulysse.enst.fr (8.8.8/8.8.8) with ESMTP id PAA23565; Thu, 3 Dec 1998 15:37:18 +0100 (MET) Original-Received: (from verna@localhost) by metheny.enst.fr (8.8.8/8.8.8) id PAA04898; Thu, 3 Dec 1998 15:37:15 +0100 (MET) Original-To: Hrvoje Niksic X-Attribution: dv X-Url: http://www.infres.enst.fr/~verna/ X-Web: http://www.infres.enst.fr/~verna/ X-Home-Page: http://www.infres.enst.fr/~verna/ In-Reply-To: Hrvoje Niksic's message of "03 Dec 1998 15:26:04 +0100" Mail-Copies-To: never X-Face: |j}\)O|k##MrRz#VK$Jy=0r=3Qc,,a/Tr6*JQbE73dy17]2YcmW$9Z&H21e}#~#pgc>dn(is5Bv1l!{1re+Q9suKIOUmOqZs2>QMxHlR;;}kaGYA@HR3D C6 X-Face: 6o|eiKqaHN.ANh8HXDzntcWUOCg\]RsOd.ctvm~*y}Y^R&*a+Co,\s#=HWsw3x$b_n2kJ#g (7u?J^@^xP)f,jUF|0Z'J:|G/bMA5O12*b,7`-Q`=pKsCRIpso07.Y>YB2H{7`?u&yh;C_ZtLHfj "William M. Perry" writes: >> I'd vote for (c), but I have no clue on how to go about finding or writing >> a good contrast-finding algorithm. Anyone out there know of one? Hrvoje> You can look at how XEmacs implements the "shadows" in redisplay-x.c. Hrvoje> That's one example I know of. Not quite. All they do is modify the brightness around one color (the widget background), and they actually [in|de]crease all RGB components by the same amount. Finding the best contrast for a given color may involve using a totally different one. The guys at gimp could probably help you on this. -- / / _ _ Didier Verna http://www.inf.enst.fr/~verna/ - / / - / / /_/ / E.N.S.T. INF C201.1 mailto:verna@inf.enst.fr /_/ / /_/ / /__ / 46 rue Barrault Tel. (33) 01 45 81 73 46 75634 Paris cedex 13 Fax. (33) 01 45 81 31 19