From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74022 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Colourspace Date: Wed, 10 Nov 2010 13:44:52 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87hbfpklor.fsf@lifelogs.com> References: <87pquvldcs.fsf@lifelogs.com> <87oc9yp21w.fsf@lifelogs.com> <8762w5f11g.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289418360 15806 80.91.229.12 (10 Nov 2010 19:46:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Nov 2010 19:46:00 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22390@lists.math.uh.edu Wed Nov 10 20:45:57 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 1PGGcG-0005EE-EB for ding-account@gmane.org; Wed, 10 Nov 2010 20:45:56 +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 1PGGba-0000HT-C4; Wed, 10 Nov 2010 13:45:14 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PGGbX-0000HC-BT for ding@lists.math.uh.edu; Wed, 10 Nov 2010 13:45:11 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PGGbT-0001JP-Nj for ding@lists.math.uh.edu; Wed, 10 Nov 2010 13:45:08 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PGGbS-0006C4-00 for ; Wed, 10 Nov 2010 20:45:06 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PGGbS-0004oF-1Y for ding@gnus.org; Wed, 10 Nov 2010 20:45:06 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Nov 2010 20:45:06 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Nov 2010 20:45:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:0Xdh+u7L7kq4Pxb6OrYki30RItA= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74022 Archived-At: On Wed, 10 Nov 2010 20:09:47 +0100 Julien Danjou wrote: JD> On Wed, Nov 10 2010, Lars Magne Ingebrigtsen wrote: >> Yes, that would be great. And if there's a way to, er, ensure the >> "distance" between two colours -- one colour would be constant (the >> background colour), and one would be altered to have sufficient distance >> to be readable, but still retain something of its colour. >> >> It may be difficult to do generally (I mean, trying to make pink >> readable on a red background sounds hard), but it'd totally rock. :-) JD> Fine, I'll give a try and see what I can do! In case it's helpful, here are the colors that most of my users liked for text background (the second one is the background). This was the starting point for the contrast data tables I mentioned. Color.BLACK, Color.WHITE Color.WHITE, Color.BLACK Color.RED.brighter(), Color.BLACK Color.LIGHT_GRAY, Color.BLACK Color.GREEN, Color.BLACK Color.YELLOW, Color.BLACK Color.PINK, Color.BLACK Color.BLUE, Color.YELLOW Color.ORANGE, Color.WHITE Color.MAGENTA, Color.WHITE Color.MAGENTA.brighter(), Color.WHITE Color.MAGENTA.darker(), Color.WHITE color_factory.getColor("burlywood"), Color.BLACK color_factory.getColor("violet"), Color.YELLOW.brighter() >>> [1] http://julien.danjou.info/rainbow-mode.html >> >> Nice. Are you pushing that to Emacs? Looks useful to me when fiddling >> with CSS files and the like. JD> I asked on emacs-devel, but it was refused. It has been added to the JD> Emacs 24 packages.el, though. IMO inclusion in Emacs 24's elpa.gnu.org is practically like inclusion in Emacs itself. It's actually better because pushing out an update is much easier for the package maintainer and installation/upgrade is much easier for the user. Chong Yidong is working with me on some way to do uploads to elpa.gnu.org. For now we have a VCS repository for the two of us and will take direct submissions. Ted