|  | 
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: re: RGB values of standard Stata colours
Ross said
Does anyone know where the RGB values for the standard _colorstyle_  
colours
may be found?
I am trying to write a graph command that takes a user-specified  
standard
colour, with the output requiring slightly lighter/darker shades of this
colour. For example, so I can do this:
if "`color'" == "red"{
	local light = "255 50 50"
	local dark = "205 0 0"
}
I know how to do red of course, but what about forest_green, cranberry,
eggshell...?
--------
program viewcolor
version 8.2
viewsource color-`0'.style
end
---------
viewcolor forest_green
viewcolor cranberry
etc.
Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/