Data visualization with SAS programming

color code

Accepted Solution Solved
Reply
Regular Contributor
Posts: 233
Accepted Solution

color code

How to interpret this color code (CXD9892C) in the TITLE statement?

 

 

title1 color=CXD9892C height=2 'This is my title';

proc print  data=sashelp.class;
run;

 


Accepted Solutions
Solution
‎03-28-2016 12:55 PM
SAS Super FREQ
Posts: 889

Re: color code

It is an RGB color, with RED=D9, GREEN=89, and BLUE=2C. The values are in HEX, so just convert them to decimal to find out their decimal value.

 

Hope this helps!

Dan

View solution in original post


All Replies
Solution
‎03-28-2016 12:55 PM
SAS Super FREQ
Posts: 889

Re: color code

It is an RGB color, with RED=D9, GREEN=89, and BLUE=2C. The values are in HEX, so just convert them to decimal to find out their decimal value.

 

Hope this helps!

Dan

Regular Contributor
Posts: 233

Re: color code

@DanH_sas.  Thank you. #e0e0e0  is also RGB color scheme?

proc template;
	define table mytable;
		cellstyle mod(_row_, 2) as {background=#e0e0e0},
			1 as {background=#c3c3c3};
		column name age sex height weight;
		define column weight;
			cellstyle _val_ >= 110 as {foreground=red},
				_val_ >= 90 as {foreground=yellow},
				1 as {foreground=green};
		end;
	end;
run;
SAS Super FREQ
Posts: 889

Re: color code

Yes.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 312 views
  • 1 like
  • 2 in conversation