NAME
Math::Fractal::DLA::Explode
SYNOPSIS
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();
DESCRIPTION
Math::Fractal::DLA::Explode is the implementation of a standard Diffusion Limited Aggregation (DLA) fractal
OVERVIEW
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.
METHODS
Math::Fractal::DLA::Explode extends the super class with two methods:
- setStartPosition ( x => X, y => Y )
-
Sets the position where the fractal will start to grow
- generate ( )
-
Generates the fractal
AUTHOR
Wolfgang Gruber, w.gruber@urldirect.at
SEE ALSO
Math::Fractal::DLA
Lincoln D. Stein's GD module
COPYRIGHT
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.