-
Notifications
You must be signed in to change notification settings - Fork 1
/
colorcode.sthlp
53 lines (33 loc) · 970 Bytes
/
colorcode.sthlp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{smcl}
{right:version 1.0.0}
{title:Title}
{phang}
{cmd:colorcode} {hline 2} returns the RGB, CMYK, and HSV code for Stata color names
{title:Syntax}
{p 8 16 2}
{cmd: colorcode} {it:colorname}
{p_end}
{title:Description}
{p 4 4 2}
{bf:colorcode} returns the RGB, CMYK, or HSV code for Stata color names.
{title:Example(s)}
get the rgb code of "blue"
. colorcode blue
get the rgb of light blue
. colorcode ltblue
{title:Stored results}
{p 4 4 2}
for each given color name, {bf:colorcode} stores the following macros:
{p 4 4 2}
{bf:r(rgb)} stores the RGB code {break}
{bf:r(hsv)} stores the HSV code {break}
{bf:r(cmyk)} stores the CMYK code
{title:Author}
{p 4 4 2}
E. F. Haghish {break}
IMBI, University of Freiburg, Germany {break}
haghish@imbi.uni-freiburg.de
{hline}
{p 4 4 2}
This help file was dynamically produced by
{browse "http://www.haghish.com/markdoc/":MarkDoc Literate Programming package}