unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: JD Smith <jdsmith@as.arizona.edu>
Subject: Re: vc-annotate error, PATCH
Date: Tue, 11 Apr 2006 11:02:40 -0700	[thread overview]
Message-ID: <pan.2006.04.11.18.02.39.890949@as.arizona.edu> (raw)
In-Reply-To: E1FTMB9-00054d-DB@fencepost.gnu.org

On Tue, 11 Apr 2006 12:57:23 -0400, Richard Stallman wrote:

>     To address this, I created a new colormap with 18 entries which fixes
>     saturation at 70%, value at 100%, and rotates from red to blue in
>     equal angle ~14 degree increments of hue.  The saturation of 70% keeps
>     the text light enough to be readable on the default black background,
>     but still usable on a white background.
> 
> How well does it work on a tty?

I hadn't thought of that, but tried and it does a reasonable job.
Less dynamic range in the yellow-green regime, but that is expected
given the small number of colors TTY's support. Here is a side by side
screen shot comparing the X11 vs. terminal annotations of the same
file:

 http://turtle.as.arizona.edu/emacs/annot_color.png

The only drawback is that green doesn't seem to get used much, with
yellow showing up instead for many colors.  I believe this is a
function of how substitute color are approximated, and the 70%
compromise saturation I use (although increasing this doesn't really
help that much).

Is there a canonical set of RGB values that terminals typically can
display?  Perhaps I could tune the map to spread out among the 5
colors more, but at some point you start sacrificing readibility on
full color displays, and over-relying on the algorithm for color
substitution.  Another option: is it possible or desirable to have a
separate color map for TTYs?  I could envision just using all the TTY
colors except the background color, in the order they are presented
from red to blue (now all but magenta are used).  May be more trouble
than it's worth.

JD

  reply	other threads:[~2006-04-11 18:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-07 23:28 vc-annotate error JD Smith
2006-04-08  0:40 ` Kevin Rodgers
2006-04-08  1:36   ` JD Smith
2006-04-10 22:00 ` vc-annotate error, PATCH JD Smith
2006-04-10 22:27   ` Stefan Monnier
2006-04-10 22:59     ` JD Smith
2006-04-11 16:57   ` Richard Stallman
2006-04-11 18:02     ` JD Smith [this message]
2006-04-11 18:34       ` Dan Nicolaescu
2006-04-11 19:02         ` JD Smith
2006-04-11 19:19           ` Dan Nicolaescu
2006-04-12 17:09           ` Richard Stallman
2006-04-12 19:17             ` JD Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pan.2006.04.11.18.02.39.890949@as.arizona.edu \
    --to=jdsmith@as.arizona.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).