From kohnicho@comp.nus.edu.sg  Wed Oct  4 04:40:40 2000
From: kohnicho@comp.nus.edu.sg (Nicholas Lewin-Koh)
Date: Wed, 4 Oct 2000 11:40:40 +0800 (GMT-8)
Subject: [Rd] R_ColorTable
In-Reply-To: <14809.56971.828581.703850@gargle.gargle.HOWL>
Message-ID: <Pine.GSO.4.21.0010041134050.29339-100000@sununx.comp.nus.edu.sg>

Hi, In C code called from .Call using the R interface, is it possible to
access the variables R_ColorTable and R_ColorTableSize? I tried 
extern int R_ColorTableSize; 
extern unsigned int R_ColorTable[]; 
extern char *DefaultPalette[]; 

as in Graphics.h but I guess that code doesn't get written into libR ? But
I can access 
extern void hsv2rgb
which is in graphics.c

Any help?

Nicholas

                 CH3
                  |
                  N             Nicholas Lewin-Koh
                 / \            Dept of Statistics
           N----C   C==O        Program in Ecology and Evolutionary Biology
          ||   ||   |           Iowa State University
          ||   ||   |           Ames, IA 50011
          CH    C   N--CH3      http://www.public.iastate.edu/~nlewin
            \  / \ /            nlewin@iastate.edu
             N    C
             |   ||             Currently
            CH3   O             Graphics Lab
                                School of Computing
                                National University of Singapore
     The Real Part of Coffee    kohnicho@comp.nus.edu.sg


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] R_ColorTable
Nicholas Lewin-Koh