<?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 With SAS ODS Graphics: Easter Egg Equation Hunt in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Easter-Egg-Equation-Hunt/m-p/453242#M15546</link>
    <description>&lt;P&gt;awesome...loved it.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 14:42:37 GMT</pubDate>
    <dc:creator>shantanupl1</dc:creator>
    <dc:date>2018-04-11T14:42:37Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: Easter Egg Equation Hunt</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Easter-Egg-Equation-Hunt/m-p/450224#M15458</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Egg.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19560i1153849EBCF6B814/image-size/large?v=v2&amp;amp;px=999" role="button" title="Egg.png" alt="Egg.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS CODE&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Easter Egg Equation Hunt

  References
  1. What is mathematical equation for an egg? (Quora)
     https://www.quora.com/What-is-mathematical-equation-for-an-egg
  2. Equation of Egg Shaped Curve of the Actual Egg is Found (Nobuo Yamamoto)
     http://www.geocities.jp/nyjp07/index_egg_E.html
  3. Solution for (x^2+y^2)^2 = x^3+(3/10)xy^2 (Wolfram)
     http://www.wolframalpha.com/input/?i=(x%5E2%2By%5E2)%5E2+%3D+x%5E3%2B(3%2F10)xy%5E2
  4. The Colors of Easter
     https://www.lifewire.com/the-colors-of-easter-4126619;

data egg;                                    * Use formula to create "Easter egg" polynomial points;
id=1;
do x=0 to 1 by .0001;
  y = sqrt(-20*x**2 + sqrt(280*x + 9)*x + 3*x)/(2*sqrt(5));
  output;
end;
do x=1 to 0 by -.0001;
  y = -sqrt(-20*x**2 + sqrt(280*x + 9)*x + 3*x)/(2*sqrt(5));
  output;
end;

ods graphics / antialias ANTIALIASMAX=20100; * Polygon plot of "Easter egg";
proc sgplot data=egg aspect=1 nowall noborder;
styleattrs backcolor=cxffffe0;         
polygon x=y y=x id=id / nooutline fill fillattrs=(color=cxdda0dd) transparency=.4; * Change orientation (x=y, y=x);
yaxis reverse display=(noline noticks novalues) label="HAPPY EASTER!" labelattrs=(size=30pt color=cx40e0D0 weight=bold);
xaxis display=none;
refline .1 to .9 by .1 / lineattrs=(color=cxffffe0 thickness=2pt) axis=y; * Easter egg "stripes";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Apr 2018 04:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Easter-Egg-Equation-Hunt/m-p/450224#M15458</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2018-04-01T04:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: Easter Egg Equation Hunt</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Easter-Egg-Equation-Hunt/m-p/450235#M15459</link>
      <description>&lt;P&gt;Awesome!&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2018 14:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Easter-Egg-Equation-Hunt/m-p/450235#M15459</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-04-01T14:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: Easter Egg Equation Hunt</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Easter-Egg-Equation-Hunt/m-p/450236#M15460</link>
      <description>&lt;P&gt;Awesome!&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2018 14:42:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Easter-Egg-Equation-Hunt/m-p/450236#M15460</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-04-01T14:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: Easter Egg Equation Hunt</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Easter-Egg-Equation-Hunt/m-p/453242#M15546</link>
      <description>&lt;P&gt;awesome...loved it.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Easter-Egg-Equation-Hunt/m-p/453242#M15546</guid>
      <dc:creator>shantanupl1</dc:creator>
      <dc:date>2018-04-11T14:42:37Z</dc:date>
    </item>
  </channel>
</rss>

