colorcode : a module to return RGB, CMYK, and HSV values for Stata colors
November 11, 2016 ยท View on GitHub
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/")
Syntax
The command simply takes a stata color name and returns the values for RGB, CMYK, and HSV as rclass macros.
Example
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"
Author
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