obfuscated
teamster_jr
Hi all,
Apologies for posting something so similar to my previous effort, but the code is completely different in this one -<br><ul><li>it doesn't use VT100 codes (except \ec which i think works everywhere),</li><li>everything is generated (except the shading scale) - compared with it being encoded in [id://339774|this]<br>theoretically you could make a new shape (along the lines of $x**2+$y**2+$z**2<$r**2 - which is used here)and it would work with that...</li><li>it actually uses closest path shading to the lightsource</li></ul>
It's also 1 ball of code shorter (a standard i intend to start using - 1 ball =~ 200 chars :-D ).<br>
anyway, without further ado:<p>
<code>
$_=q`$_='
@8GCI';@a=/./g;
$j=9;$k=9;$w=25;$ c=35;$e=
8;$u=2;$v=1;{$k+=$v* =$k<6|$k>16?-1:
1;$j+=$u*=$j<9|$j>60?- 1:1;my(%l,$m,$n);
for$y(0..22){for(0..70 ){$r=($_-$j)/1.6;$s=
$y-$k;$d=(($_-$c)**2+( $y-$f)**2+(($w-$r**2-$
s**2)**.5-$e)**2)**.5; if($r**2+$s**2<$w){$m=
$d<$m||!$m?$d:$m;$n= $d>$n?$d:$m;$l{$y}{$_}
=$d;}}}print"\ec"; for$y(0..22){print$_>6
9?$/:(($d=$l{$y }{$_})?$a[($d-$m)*5/
$n]:$")fo r(0..70)}select$q,
$q,$q,.1;redo}`;
s#\s##g;eval
</code>
Enjoy!<br>
Alex