<?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 Re: Fun w/SAS ODS Graphics: Twinkle-Twinkle-Little-Star Holiday Wreath (Scatter + Text Plots) in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-Twinkle-Twinkle-Little-Star-Holiday/m-p/851058#M23386</link>
    <description>COOL !</description>
    <pubDate>Sun, 25 Dec 2022 10:05:13 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-12-25T10:05:13Z</dc:date>
    <item>
      <title>Fun w/SAS ODS Graphics: Twinkle-Twinkle-Little-Star Holiday Wreath (Scatter + Text Plots)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-Twinkle-Twinkle-Little-Star-Holiday/m-p/851044#M23383</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wreath.gif" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78863i3B0EC08A3DD2EA35/image-size/large?v=v2&amp;amp;px=999" role="button" title="wreath.gif" alt="wreath.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Combined my &lt;A href="https://communities.sas.com/t5/SAS-Programming/Fun-With-SAS-ODS-Graphics-Happy-Thanksgiving-Pumpkin-Pie-Plot/m-p/846080" target="_self"&gt;Thanksgiving Pumpkin Pie Plot&lt;/A&gt; code and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;'s &lt;A href="https://blogs.sas.com/content/iml/2016/08/22/animation-by-statement-proc-sgplot.html" target="_self"&gt;2016 SGPLOT BY-statement animation trick&lt;/A&gt; to quickly cobble together a twinkle-twinkle-little-star wreath. Happy Holidays, all!&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: Happy Holidays! Twinkle-Twinkle-Little-Stars Wreath (Scatter + Text Plots);
  
data wreath;                                                      /* Generate points for "wreath" graph */                                              
do frame=1 to 25;                                                 /* Randomly change colors of stars for each frame of GIF to make them twinkle */
  tx=0; ty=0; msg="HAPPY*HOLIDAYS!"; output; tx=.; ty=.;          /* Happy Holidays! message in center of wreath */
  do theta=0 to 2*constant("pi")+.1 by (2*constant("pi"))/60;     /* Generate 60 points around a circle for stars on wreath */  
    do r=1 to .7 by -.075;                                        /* Five con-centric circles of stars */
      x=r*cos(theta);                                             /* A little trigonometry to get x-coordinate */                           
      y=r*sin(theta);                                             /* And y-coordinate */
      color=(rand("Integer", 0, 2));                              /* Assign a random color - silver, gold, white color ramp */
      output;
    end;
 end;  
end;

ods graphics / imagefmt=GIF width=5in height=5in;                 /* Record wreath images */  
options nobyline papersize=('5 in', '5 in') animduration=.2 animloop=yes animoverlay printerpath=gif animation=start nodate nonumber;
ods printer file='~/xmaswreath/wreath.gif';                       /* Animated GIF filename */
proc sgplot noautolegend aspect=1 noborder nowall pad=0;          /* Generate a wreath! */
by frame;                                                         /* One image per frame to make stars twinkle */
styleattrs backcolor=CX102e05;                                    /* Xmas tree green background color */
symbolchar name=uniStar char='2605'x;                             /* Unicode value for 5-pointed star */
scatter x=x y=y / markerattrs=(symbol=uniStar size=22pt) colormodel=(silver gold white) colorresponse=color; * Generate stars;
text x=tx y=ty text=msg / backlight=1 contributeoffsets=none textattrs=(size=24pt weight=bold color=cxdcf0ef) splitchar='*' splitpolicy=splitalways contributeoffsets=none; * "Happy Holidays!" message;
xaxis display=none; yaxis display=none;                           /* Hide axes */
run;
options printerpath=gif animation=stop;                           /* Stop recording images */
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 00:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-Twinkle-Twinkle-Little-Star-Holiday/m-p/851044#M23383</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2022-12-25T00:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fun w/SAS ODS Graphics: Twinkle-Twinkle-Little-Star Holiday Wreath (Scatter + Text Plots)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-Twinkle-Twinkle-Little-Star-Holiday/m-p/851049#M23384</link>
      <description>Impressive! Nothing like a bit of Christmas trigonometric twinkle! &lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;</description>
      <pubDate>Sun, 25 Dec 2022 01:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-Twinkle-Twinkle-Little-Star-Holiday/m-p/851049#M23384</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2022-12-25T01:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fun w/SAS ODS Graphics: Twinkle-Twinkle-Little-Star Holiday Wreath (Scatter + Text Plots)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-Twinkle-Twinkle-Little-Star-Holiday/m-p/851058#M23386</link>
      <description>COOL !</description>
      <pubDate>Sun, 25 Dec 2022 10:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-Twinkle-Twinkle-Little-Star-Holiday/m-p/851058#M23386</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-12-25T10:05:13Z</dc:date>
    </item>
  </channel>
</rss>

