Help for this page

Select Code to Download


  1. or download this
            for my $i (0 .. $radius ** 2) { # See "1" below
                # Rounded values, see "2" below
                my $x_val = int($radius * cos($i) + $center_x + 0.5);
    ...
                    $curpass{$x_val}{$y_val}++;
                }
            }
    
  2. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
        foreach (@_) {$max = $_ if $_ > $max}
        return $max;
    }