Skip to content
Back to formatted view

Raw Message

Message-ID: <000801bf81f5$e18d55d0$a9021aac@joelschlaegel>
Date: 2000-02-28T14:12:42Z
From: Jens Oehlschlägel-Akiyoshi
Subject: pre summary: mapping of colornames into hsv?
In-Reply-To: <200002281102.LAA22096@toucan.stats.ox.ac.uk>

etc/colors.big doesn't do the job currently, as:

  colors.big maps 455 names to rgb in S syntax
  rgb.txt maps 657 names to rgb in C syntax, but unlike colors() it has
mixed upper and lower case

The C source has the information twice
  rgb.c maps 657 names to rgb (mixed upper and lower case)
  graphics.c maps 657 names tp colorstrings (lower case only)

internal name2col() and R colors() accesses those in graphics.c

I tend to create a R representation which copies the info from graphics.c,
unless someone plans to export
internal name2col() to become an official R function, which of course would
be a less redundant solution.

Regards


Jens


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._