<?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 With SAS ODS Graphics: Ellipses Easter Egg in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Ellipses-Easter-Egg/m-p/731178#M21277</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ellipses Easter Egg" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56882i09136113E97C32E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="easteregg.png" alt="Ellipses Easter Egg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Ellipses Easter Egg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Drawing an egg could &lt;A href="http://www.mathematische-basteleien.de/eggcurves.htm" target="_self"&gt;involve a lot of math&lt;/A&gt;...or you can cut a few corners and join the top of an ellipse with the bottom of a circle. Happy Easter, all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Ellipses Easter Egg
  Bunny icon courtesy of Marie-Louise Merser, DK thenounproject.com/search/?q=easter+bunny&amp;amp;i=960660;

data egg;                                                            * Generate points and text for Easter Egg;
retain id 0 xt1 0 yt1 .195 text1 'HAPPY' xt2 0 yt2 0 text2 'Easter' xb 0 yb -.375; * Text to display and x/y points;
x=-1; y=0; output; x=1; output; y=-1; output; x=-1; output;          * Rectangle points (used to mask bottom half of top ellipse);

ods graphics / reset antialias width=5in height=5in;
proc sgplot data=egg aspect=1 noborder noautolegend nowall;          * Generate Easter Egg (half-ellipse + masking polygon + circle + text + scatter plots);
symbolimage name=bunny image='/folders/myfolders/easterbunny.png';   * Rabbit icon; 
ellipseparm semimajor=.75 semiminor=1 / nooutline fill fillattrs=(color=purple);* Top ellipse of Easter Egg;
polygon x=x y=y id=id / nooutline fill fillattrs=(color=white);      * Mask off bottom half of top ellipse;
ellipseparm semimajor=.75 semiminor=.75  / nooutline fill fillattrs=(color=purple);* Bottom ellipse of Easter Egg (circle);
text x=xt1 y=yt1 text=text1 / textattrs=(color=white size=18pt);     * Happy; 
text x=xt2 y=yt2 text=text2 / textattrs=(color=white size=63pt);     * Easter; 
scatter x=xb y=yb / markerattrs=(symbol=bunny size=48pt);            * Easter Bunny image; 
xaxis display=none min=-.925 max=.925 offsetmax=.001 offsetmin=.001; * Limit x/y axis bounds;
yaxis display=none min=-.80 max=1.05 offsetmax=.001 offsetmin=.001;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ellipses Easter Egg &amp;quot;Wireframe&amp;quot;" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56883i0B4CBF78357833A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="eastereggwire.png" alt="Ellipses Easter Egg &amp;quot;Wireframe&amp;quot;" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Ellipses Easter Egg "Wireframe"&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Apr 2021 22:53:48 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2021-04-03T22:53:48Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: Ellipses Easter Egg</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Ellipses-Easter-Egg/m-p/731178#M21277</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ellipses Easter Egg" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56882i09136113E97C32E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="easteregg.png" alt="Ellipses Easter Egg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Ellipses Easter Egg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Drawing an egg could &lt;A href="http://www.mathematische-basteleien.de/eggcurves.htm" target="_self"&gt;involve a lot of math&lt;/A&gt;...or you can cut a few corners and join the top of an ellipse with the bottom of a circle. Happy Easter, all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Ellipses Easter Egg
  Bunny icon courtesy of Marie-Louise Merser, DK thenounproject.com/search/?q=easter+bunny&amp;amp;i=960660;

data egg;                                                            * Generate points and text for Easter Egg;
retain id 0 xt1 0 yt1 .195 text1 'HAPPY' xt2 0 yt2 0 text2 'Easter' xb 0 yb -.375; * Text to display and x/y points;
x=-1; y=0; output; x=1; output; y=-1; output; x=-1; output;          * Rectangle points (used to mask bottom half of top ellipse);

ods graphics / reset antialias width=5in height=5in;
proc sgplot data=egg aspect=1 noborder noautolegend nowall;          * Generate Easter Egg (half-ellipse + masking polygon + circle + text + scatter plots);
symbolimage name=bunny image='/folders/myfolders/easterbunny.png';   * Rabbit icon; 
ellipseparm semimajor=.75 semiminor=1 / nooutline fill fillattrs=(color=purple);* Top ellipse of Easter Egg;
polygon x=x y=y id=id / nooutline fill fillattrs=(color=white);      * Mask off bottom half of top ellipse;
ellipseparm semimajor=.75 semiminor=.75  / nooutline fill fillattrs=(color=purple);* Bottom ellipse of Easter Egg (circle);
text x=xt1 y=yt1 text=text1 / textattrs=(color=white size=18pt);     * Happy; 
text x=xt2 y=yt2 text=text2 / textattrs=(color=white size=63pt);     * Easter; 
scatter x=xb y=yb / markerattrs=(symbol=bunny size=48pt);            * Easter Bunny image; 
xaxis display=none min=-.925 max=.925 offsetmax=.001 offsetmin=.001; * Limit x/y axis bounds;
yaxis display=none min=-.80 max=1.05 offsetmax=.001 offsetmin=.001;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ellipses Easter Egg &amp;quot;Wireframe&amp;quot;" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56883i0B4CBF78357833A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="eastereggwire.png" alt="Ellipses Easter Egg &amp;quot;Wireframe&amp;quot;" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Ellipses Easter Egg "Wireframe"&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 22:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Ellipses-Easter-Egg/m-p/731178#M21277</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-04-03T22:53:48Z</dc:date>
    </item>
  </channel>
</rss>

