in reply to Hints on hoq to create this graph?
#!/usr/bin/perl use warnings; use strict; my@p=(' ',qw(. + * ),'#');my$s=20;sub p{my($w,$v)=@_;for my $e(1..$#p){return$p[$e]if$w**2+$v**2<($e*$s/$#p)**2}' '}for my$v(-$s..$s){for my$w(-$s..$s){print p($w,$v);}print"\n";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hints on hoq to create this graph?
by Anonymous Monk on Feb 14, 2014 at 08:48 UTC | |
by choroba (Cardinal) on Feb 14, 2014 at 14:46 UTC |