Proporzione Divina, by fellow mathematician
blazar, was the inspiration for this. (In fact I mentioned
here that I'd be doing an obfuscation, or "Offuscamento", based on the
Golden Ratio; this is the fulfilment of that intent).
The original version (with recursive, inscribed golden rectangles) was fairly well "golfed" down, but wasn't visually stimulating enough, so I added the spirals. They really spiced up the output, but significantly increased the total character count. Oh, well...
The program needs Tk to work. Ironically, one feature of the program was created by "accident" -- I forgot the Tk switch to createArc to change the arc's color, and guessed at -fill. That wasn't it, but the resulting effect was quite pleasing, so I left it in.
$_='us!b{lJ$++$
;=
A8 1;0 P@(=(\x$0
=,)( \y $0=,)(\X$
9=06,) (\ Y$$
=/X $ (=p .11 608
43) ) ;)H@( =, 0,0*2Y$2
,$* , YX $0, 2, 627,33$,,
XY$ 5,601,04$ ,,Y Y$8 ,37
3,3 1$,,Y63,7 67, 63 5,
93 7,3 6 3,726 ,67 4,3
37, 354 , 366,7 83,786,05
4,3 27,01 4,286,0 2 4,0 07,544,
507 ,024,08 6,4
34, 507 ,0 34,296
,02 4)3 s} buR!r{na!d52}6us!b{rpsirtn"f%#20%x20%x20"xR,
R,R ,u} es T!;kM$
n=w eM! iaW nniod;w
;lM $>- ere pta9(,9us{b
fi0 (== f$+ +3% )2$
{&V$&-Vp>ca Fk roe
g;t;lV$$ =-MC
>na av(s
w-, iX$-
,eh $,)Y
>-a pkc$
}=u {$P$0[}](+{$
P$2[}]$-${[P
]0 )}$/;p V$ >-rca
eeto Pylo g(nx$$,, yx$$ ,,Y X$$
,,YX$$ ,,yf-, i)r $;-Mu> dpt a;e
es el tc $(, aa$ $,, a2. ;){
$P$0[} ]$= ;uuphsP@s ,ih tfP @@;
=Q$( %J)2 (?f -,i)r(:o-t uil enw,ihe
t;)V$> -rc aee trA (cR @-, tsr
a, tA $= -09 @,) Qhw li( e=0 $=%
f61na@ d=R psi lec @(, H,0 )4} );)
aMni oLp o';s* \s**xgs;s? !?$ "?xg#070603
;;s&(.) (.) &$2$1&xg ;eval# liverpole
(Thanks to blazar for teaching me the Italian word for "obfuscation".)
s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.