This image shows a colored distribution of repeating digits of pi. Double digits are highlighted yellow, triple digits are highlighted green, and the Feynman point is highlighted red.
<p>This image was produced by the uploader using a PHP script:
</p>
<div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="x">&lt;HTML&gt;</span>
<span class="x">&lt;HEAD&gt;</span>
<span class="x">&lt;STYLE type="text/css"&gt;</span>
<span class="x">.x6 { background-color: #f99; }</span>
<span class="x">.x3 { background-color: #9fc; }</span>
<span class="x">.x2 { background-color: #ff9; }</span>
<span class="x">body { font-size: 20px; }</span>
<span class="x">&lt;/STYLE&gt;</span>
<span class="x">&lt;/HEAD&gt;</span>
<span class="x">&lt;BODY&gt;</span>
<span class="x">&lt;/BODY&gt;</span><span class="cp">&lt;?php</span>
<span class="nv">$s</span> <span class="o">=</span> <span class="s">&lt;&lt;&lt;</span><span class="dl">PI</span>
<span class="s">3.14159265358979323846264338327950288419716939937510582097494459230781640628620899</span>
<span class="s">8628034825342117067982148086513282306647093844609550582231725359408128481117450284</span>
<span class="s">1027019385211055596446229489549303819644288109756659334461284756482337867831652712</span>
<span class="s">0190914564856692346034861045432664821339360726024914127372458700660631558817488152</span>
<span class="s">0920962829254091715364367892590360011330530548820466521384146951941511609433057270</span>
<span class="s">3657595919530921861173819326117931051185480744623799627495673518857527248912279381</span>
<span class="s">8301194912983367336244065664308602139494639522473719070217986094370277053921717629</span>
<span class="s">3176752384674818467669405132000568127145263560827785771342757789609173637178721468</span>
<span class="s">4409012249534301465495853710507922796892589235420199561121290219608640344181598136</span>
<span class="s">2977477130996051870721134999999837297804995105973173281609631859502445945534690830</span>
<span class="s">2642522308253344685035261931188171010003137838752886587533208381420617177669147303</span>
<span class="s">5982534904287554687311595628638823537875937519577818577805321712268066130019278766</span>
<span class="s">1119590921642019893809525720106548586327886593615338182796823030195203530185296899</span>
<span class="s">5773622599413891249721775283479131515574857242454150695950829533116861727855889075</span>
<span class="s">0983817546374649393192550604009277016711390098488240128583616035637076601047101819</span>
<span class="s">429555961989467678374494482553797747268471040475346462080466842590694912...</span>
<span class="dl">PI</span><span class="p">;</span>

<span class="nv">$lst</span> <span class="o">=</span> <span class="nv">$str</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
<span class="nv">$n</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
<span class="k">for</span><span class="p">(</span><span class="nv">$i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nv">$i</span> <span class="o">&lt;</span> <span class="nb">strlen</span><span class="p">(</span><span class="nv">$s</span><span class="p">);</span> <span class="nv">$i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="nv">$s</span><span class="p">[</span><span class="nv">$i</span><span class="p">]</span> <span class="o">==</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">"</span><span class="p">)</span> <span class="k">echo</span> <span class="s2">"&lt;br&gt;"</span><span class="p">;</span>
<span class="k">if</span> <span class="p">(</span><span class="nv">$lst</span> <span class="o">!=</span> <span class="nv">$s</span><span class="p">[</span><span class="nv">$i</span><span class="p">])</span> <span class="p">{</span>
<span class="k">echo</span> <span class="s2">"&lt;span class='x</span><span class="si">{</span><span class="nv">$n</span><span class="si">}</span><span class="s2"> g'&gt;"</span><span class="p">;</span>
<span class="k">for</span><span class="p">(</span><span class="nv">$j</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nv">$j</span> <span class="o">&lt;</span> <span class="nv">$n</span><span class="p">;</span> <span class="nv">$j</span><span class="o">++</span><span class="p">)</span> <span class="k">echo</span> <span class="s2">"&lt;span class='c'&gt;</span><span class="si">{</span><span class="nv">$lst</span><span class="si">}</span><span class="s2">&lt;/span&gt;"</span><span class="p">;</span>
<span class="k">echo</span> <span class="s2">"&lt;/span&gt;"</span><span class="p">;</span>
<span class="nv">$n</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
<span class="nv">$lst</span> <span class="o">=</span> <span class="nv">$s</span><span class="p">[</span><span class="nv">$i</span><span class="p">];</span>
<span class="nv">$n</span><span class="o">++</span><span class="p">;</span>
<span class="p">}</span>

<span class="cp">?&gt;</span>
<span class="x">...</span>
<span class="x">&lt;/BODY&gt;</span>
<span class="x">&lt;/HTML&gt;</span>
</pre></div>
The original uploader was <a href="https://en.wikipedia.org/wiki/User:TechnoGuyRob" class="extiw" title="wikipedia:User:TechnoGuyRob">TechnoGuyRob</a> at <a href="https://en.wikipedia.org/wiki/" class="extiw" title="wikipedia:">English Wikipedia</a>.
13 February 2008 (original upload date)
Transferred from <span class="plainlinks"><a class="external text" href="https://en.wikipedia.org">en.wikipedia</a></span> to Commons by <a href="//commons.wikimedia.org/wiki/User:Oliphaunt" title="User:Oliphaunt">Oliphaunt</a> using <a href="https://iw.toolforge.org/commonshelper/" class="extiw" title="toollabs:commonshelper/">CommonsHelper</a>.