Math-Fractal-Julia
view release on metacpan or search on metacpan
The "options" hash may contain any or all of the following:
max_iter => $iters
limit => $limit
bounds => [ $x1, $x2, $y1, $y2, $width, $height ]
constant => [ $cx, $cy ]
The default maximum number of iterations is 600. The default limit is 5.
The default bounds is [-2.2, -1.1, 1.0, 1.1, 640, 480]. The default
constant is [0.0, 0.0].
my $julia = Math::Fractal::Julia->new();
my $julia = Math::Fractal::Julia->new(%options);
my $julia = Math::Fractal::Julia->new(
max_iter => $iters,
limit => $limit,
bounds => [ $x1, $x2, $y1, $y2, $width, $height ],
constant => [ $cx, $cy ],
);
set_max_iter
Arguments: $max
Return value: undefined
Set the maximum number of iterations. The default value is 600.
Math::Fractal::Julia->set_max_iter($max);
$julia->set_max_iter($max);
set_limit
Arguments: $limit
Return value: undefined
The default value is 5.
Return value: undefined
The default values are (0.0, 0.0).
Math::Fractal::Julia->set_constant( $cx, $cy );
$julia->set_constant( $cx, $cy );
point
Arguments: $x, $y
Return value: The number of iterations needed to exceed the limit or 0
if the the limit is not exceeded.
This function translates the coordinates using the bounds and then
iterates.
$iters = Math::Fractal::Julia->point( $x, $y );
$iters = $julia->point( $x, $y );
CAVEATS
lib/Math/Fractal/Julia.pm view on Meta::CPAN
max_iter => $iters
limit => $limit
bounds => [ $x1, $x2, $y1, $y2, $width, $height ]
constant => [ $cx, $cy ]
=back
The default maximum number of iterations is 600.
The default limit is 5.
The default bounds is [-2.2, -1.1, 1.0, 1.1, 640, 480].
The default constant is [0.0, 0.0].
my $julia = Math::Fractal::Julia->new();
my $julia = Math::Fractal::Julia->new(%options);
my $julia = Math::Fractal::Julia->new(
max_iter => $iters,
lib/Math/Fractal/Julia.pm view on Meta::CPAN
=head2 set_max_iter
=over 4
=item Arguments: $max
=item Return value: undefined
=back
Set the maximum number of iterations. The default value is 600.
Math::Fractal::Julia->set_max_iter($max);
$julia->set_max_iter($max);
=head2 set_limit
=over 4
=item Arguments: $limit
lib/Math/Fractal/Julia.pm view on Meta::CPAN
Math::Fractal::Julia->set_constant( $cx, $cy );
$julia->set_constant( $cx, $cy );
=head2 point
=over 4
=item Arguments: $x, $y
=item Return value: The number of iterations needed to exceed the limit
or 0 if the the limit is not exceeded.
=back
This function translates the coordinates using the bounds and then
iterates.
$iters = Math::Fractal::Julia->point( $x, $y );
$iters = $julia->point( $x, $y );
( run in 0.817 second using v1.01-cache-2.11-cpan-71847e10f99 )