<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Fun w/SAS ODS Graphics: Be Still My Unicode Valentine Heart in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-Be-Still-My-Unicode-Valentine-Heart/m-p/915996#M24333</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Valentines.gif" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93679i1720A98C104D1307/image-size/large?v=v2&amp;amp;px=999" role="button" title="Valentines.gif" alt="Valentines.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy Valentine's Day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun w/SAS ODS Graphics: Be Still My Unicode Valentine Heart;

data heart;                                 /* Plot Unicode hearts of various sizes at x=0 y=-.025 */
xH=0; yH=-.025; txtH=unicode('\u2764');     /* Unicode heart character code is hex 2764 */

ods _all_ close;                            /* Plot valentine (animated GIF with 5 frames) */
options papersize=('5 in', '5 in') printerpath=gif animation=start animloop=YES NOANIMOVERLAY nodate nonumber;
ods printer file='/home/ted.conway/Valentines.gif';
ods graphics / width=5in height=5in imagefmt=GIF antialias; 
%macro valentine;                           
%do frame=0 %to 4;                          /* Plot 5 nested Valentine hearts of varying sizes */ 
%if &amp;amp;frame=0 | &amp;amp;frame=4 %then options animduration=.75; %else  options animduration=.25;; 
proc sgplot data=heart noautolegend noborder pad=0 aspect=1 nowall subpixel;
styleattrs backcolor=cxffbcd9;              /* Cotton candy pink background */
inset " " "HAPPY VALENTINE'S DAY!" / position=top textattrs=(size=22pt color=cxB81B47 weight=bold); /* Bright marooon color */
%do h=&amp;amp;frame %to 0 %by-1;                   /* Plot biggest hearts first, alternate red and white color */
text x=xH y=yH text=txtH / textattrs=(family="Arial Unicode MS" size=%eval((&amp;amp;h=0)*36+36*&amp;amp;h*5/2)pt color=%if %sysfunc(mod(&amp;amp;h,2))=1 %then WHITE; %else RED;) position=center vcenter=bbox contributeoffsets=none strip;; 
%end;
xaxis display=none offsetmin=0 offsetmax=0 values=(-1 1); /* Suppress labels/ticks on axes, set bounds */
yaxis display=none offsetmin=0 offsetmax=0 values=(-1 1);
run;
%end;
%mend;

%valentine;
options printerpath=gif animation=stop;
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Feb 2024 05:47:43 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2024-02-14T05:47:43Z</dc:date>
    <item>
      <title>Fun w/SAS ODS Graphics: Be Still My Unicode Valentine Heart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-Be-Still-My-Unicode-Valentine-Heart/m-p/915996#M24333</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Valentines.gif" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93679i1720A98C104D1307/image-size/large?v=v2&amp;amp;px=999" role="button" title="Valentines.gif" alt="Valentines.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy Valentine's Day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun w/SAS ODS Graphics: Be Still My Unicode Valentine Heart;

data heart;                                 /* Plot Unicode hearts of various sizes at x=0 y=-.025 */
xH=0; yH=-.025; txtH=unicode('\u2764');     /* Unicode heart character code is hex 2764 */

ods _all_ close;                            /* Plot valentine (animated GIF with 5 frames) */
options papersize=('5 in', '5 in') printerpath=gif animation=start animloop=YES NOANIMOVERLAY nodate nonumber;
ods printer file='/home/ted.conway/Valentines.gif';
ods graphics / width=5in height=5in imagefmt=GIF antialias; 
%macro valentine;                           
%do frame=0 %to 4;                          /* Plot 5 nested Valentine hearts of varying sizes */ 
%if &amp;amp;frame=0 | &amp;amp;frame=4 %then options animduration=.75; %else  options animduration=.25;; 
proc sgplot data=heart noautolegend noborder pad=0 aspect=1 nowall subpixel;
styleattrs backcolor=cxffbcd9;              /* Cotton candy pink background */
inset " " "HAPPY VALENTINE'S DAY!" / position=top textattrs=(size=22pt color=cxB81B47 weight=bold); /* Bright marooon color */
%do h=&amp;amp;frame %to 0 %by-1;                   /* Plot biggest hearts first, alternate red and white color */
text x=xH y=yH text=txtH / textattrs=(family="Arial Unicode MS" size=%eval((&amp;amp;h=0)*36+36*&amp;amp;h*5/2)pt color=%if %sysfunc(mod(&amp;amp;h,2))=1 %then WHITE; %else RED;) position=center vcenter=bbox contributeoffsets=none strip;; 
%end;
xaxis display=none offsetmin=0 offsetmax=0 values=(-1 1); /* Suppress labels/ticks on axes, set bounds */
yaxis display=none offsetmin=0 offsetmax=0 values=(-1 1);
run;
%end;
%mend;

%valentine;
options printerpath=gif animation=stop;
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2024 05:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-Be-Still-My-Unicode-Valentine-Heart/m-p/915996#M24333</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2024-02-14T05:47:43Z</dc:date>
    </item>
  </channel>
</rss>

