Skip to content

a module to return RGB, CMYK, and HSV color code for Stata colors

Notifications You must be signed in to change notification settings

haghish/colorcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colorcode : a module to return RGB, CMYK, and HSV values for Stata colors

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
[email protected]
http:https://www.haghish.com/weaver
@Haghish

About

a module to return RGB, CMYK, and HSV color code for Stata colors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages