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
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.
|