[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: re: RGB values of standard Stata colours

From   Kit Baum <>
Subject   st: re: RGB values of standard Stata colours
Date   Tue, 30 Oct 2007 06:57:01 -0400

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,

program viewcolor
version 8.2
viewsource color-`0'.style

viewcolor forest_green
viewcolor cranberry


Kit Baum, Boston College Economics and DIW Berlin
An Introduction to Modern Econometrics Using Stata:

* For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index