use Math::Fractal::DLA::Explode; $fractal = new Math::Fractal::DLA::Explode; # Set the values of Math::Fractal::DLA $fractal->debug( debug => 1, logfile => FILE ); . . $fractal->setColors(5); # Set the target point (center of the explosion) $self->setStartPosition ( x => X, y => Y ); # Generate the fractal $fractal->generate(); # Write the generated fractal to a file $fractal->writeFile();
Math::Fractal::DLA::Explode is the implementation of a standard Diffusion Limited Aggregation (DLA) fractal
The module Math::Fractal::DLA::Explode is the implementation of the most widely known type of DLA fractals. The fractal is created by single particles which move from an outter rectangle towards the target area. By hitting the area the particle becomes a part of the target area and the fractal grows.
Math::Fractal::DLA::Explode extends the super class with two methods:
Sets the position where the fractal will start to grow
Generates the fractal
Wolfgang Gruber, firstname.lastname@example.org
Lincoln D. Stein's GD module
Copyright (c) 2002 by Wolfgang Gruber. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.