If you have github command installed, you can simply install the package by typing:
github install haghish/colorcode
Otherwise, you can install it using net install
command as shown below:
net install github, replace from("https://raw.githubusercontent.com/haghish/github/master/")
The command simply takes a stata color name and returns the values for RGB, CMYK, and HSV as rclass macros.
Say, you want to obtain the RGB code of a Stata color e.g. bluishgray
:
. colorcode bluishgray
rgb 217 230 235
hsv 197 .08 .92
cmyk 18 5 0 20
. return list
macros:
r(rgb) : "217 230 235"
r(hsv) : "197 .08 .92"
r(cmyk) : "18 5 0 20"
E. F. Haghish
Center for Medical Biometry and Medical Informatics
University of Freiburg, Germany
haghish@imbi.uni-freiburg.de
http://www.haghish.com/weaver
@Haghish