LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2012, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 14 May 2012 11:18:51 -0400
Reply-To:     Ya Huang <ya.huang@AMYLIN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ya Huang <ya.huang@AMYLIN.COM>
Subject:      Re: I need Gradient color shading in sas annotation facility
Comments: To: SAS Analyst <analystprasad@YAHOO.CO.IN>

Use a do loop to change the color code:

data box; length function style color $ 8 text $ 15; xsys="3"; ysys="3"; do i=0 to 255 by 1; function="move"; x=10+i/256*20; y=65; output; function="bar"; x=11+i/256*20; y=95; color=cats('cx',put (i+100,hex2.),put(i+50,hex2.),put(i,hex2.)); style="solid"; output; end; run;

proc print; run;

proc ganno annotate=box; run; quit;

On Mon, 14 May 2012 05:21:04 -0400, SAS Analyst <analystprasad@YAHOO.CO.IN> wrote:

>Hi, >For example, the following draws a green box. But how can I make the color >blend from one color to another?Please do needful. > > >data box; > length function style color $ 8 text $ 15; > xsys="3"; ysys="3"; > > color="green"; > function="move"; x=10; y=65; output; > function="bar"; x=30; y=95; style="solid"; output; >run; > >proc ganno annotate=box; >run; >quit; > >Regards, >Prasad.


Back to: Top of message | Previous page | Main SAS-L page