From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74245 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.gnus.general Subject: Re: Colour manipulation Date: Mon, 22 Nov 2010 15:49:29 +0100 Message-ID: References: <87pquvldcs.fsf@lifelogs.com> <87oc9yp21w.fsf@lifelogs.com> <87lj4pmgu7.fsf@keller.adm.naquadah.org> <87oc9ihjbk.fsf@keller.adm.naquadah.org> <8739quh5gk.fsf@keller.adm.naquadah.org> <87wro6fpgo.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1290437443 26933 80.91.229.12 (22 Nov 2010 14:50:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2010 14:50:43 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22610@lists.math.uh.edu Mon Nov 22 15:50:20 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PKXil-00089X-2m for ding-account@gmane.org; Mon, 22 Nov 2010 15:50:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PKXi6-0003Nc-6e; Mon, 22 Nov 2010 08:49:38 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PKXi5-0003NS-1N for ding@lists.math.uh.edu; Mon, 22 Nov 2010 08:49:37 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PKXhy-0001K6-U2 for ding@lists.math.uh.edu; Mon, 22 Nov 2010 08:49:36 -0600 Original-Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PKXhy-0003MH-00 for ; Mon, 22 Nov 2010 15:49:30 +0100 Original-Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33]) by rose.easter-eggs.fr (Postfix) with ESMTPS id 74EBE140BD for ; Mon, 22 Nov 2010 15:49:28 +0100 (CET) Original-Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72) (envelope-from ) id 1PKXhx-0005rH-EK for ding@gnus.org; Mon, 22 Nov 2010 15:49:29 +0100 Mail-Followup-To: ding@gnus.org In-Reply-To: <87wro6fpgo.fsf@keller.adm.naquadah.org> (Julien Danjou's message of "Sun, 21 Nov 2010 20:26:15 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74245 Archived-At: On Sun, Nov 21 2010, Julien Danjou wrote: > On Sun, Nov 21 2010, Lars Magne Ingebrigtsen wrote: > >> It's all Greek to me... > > Okay, I'll try to write you something this week. :-) I did not finished yet, but here's an example of what I am able to do with my code: http://naquadah.org/~jd/color-corrector.html The 2 colors on the left are randomly chosen. The 2 colors on the right are either the same if the the color couple is considered visible, or 2 new adjusted colors if the function thinks they are not visible. (The code also has an option to adjust only the foreground color, in case the background color tested would be the frame background color. We would not want to change it I think. This is obviously not shown on that HTML test page.) --=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info