| 1 | ############################################################################### | ||
| 2 | # calculate points/stripes in the mandelbrot fractal efficient | ||
| 3 | |||
| 4 | package Math::Fractal::Mandelbrot; | ||
| 5 | |||
| 6 | 2 | ▶ | use 5.005; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | # use warnings; # dont use warnings for older Perls | ||
| 9 | |||
| 10 | 2 | require Exporter; | |
| 11 | 2 | require DynaLoader; | |
| 12 | |||
| 13 | 2 | ▶ | use vars qw/@ISA $VERSION @EXPORT_OK/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | @ISA = qw(Exporter DynaLoader); | |
| 15 | |||
| 16 | 2 | @EXPORT_OK = qw/ | |
| 17 | point hor_line ver_line | ||
| 18 | set_bounds set_limit set_max_iter set_epsilon | ||
| 19 | /; | ||
| 20 | |||
| 21 | 2 | $VERSION = '0.04'; | |
| 22 | |||
| 23 | 2 | bootstrap Math::Fractal::Mandelbrot $VERSION; | |
| 24 | |||
| 25 | # no Perl code, it's all in the XS code | ||
| 26 | |||
| 27 | 2 | 1; | |
| 28 | __END__ | ||