Karl#!/usr/bin/perl -w use strict;my@AoA;my($x,$y);my$w =20;my$h=20;for$x(0..$w){for$y## (0..$h){$AoA[$x][$y]=sqrt(($x-## 0.5*$w)**2+($y-0.5*$h)**2)/10+## 0.01;}}for$x(0..$w){for$y(0..$h) {if($AoA[$x][$y]>=0&&$AoA[$x]### [$y]<=0.25){print'j';}elsif($AoA [$x][$y]>=0.25&&$AoA[$x][$y]<=## 0.5){print'a';}elsif($AoA[$x]### [$y]>=0.5 &&$AoA[$x][$y]<=0.75)# {print'p';}elsif($AoA[$x][$y]### >=0.75&&$AoA[$x][$y]<=1){print## 'h';}else{print' ';}}print"\n";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Really bored at work JAPH
by rdfield (Priest) on Oct 31, 2002 at 12:28 UTC | |
|
Re: Really bored at work JAPH
by karl_heinrich (Acolyte) on Oct 31, 2002 at 20:52 UTC | |
by jynx (Priest) on Oct 31, 2002 at 23:23 UTC | |
|
Re: Really bored at work JAPH
by mkahn (Beadle) on Nov 05, 2002 at 00:40 UTC |