NAME

Math::Fractal::Julia - Calculate points in the Julia set

VERSION

version 0.000001

SYNOPSIS

use Math::Fractal::Julia;

# Procedural usage (like Math::Fractal::Mandelbrot):
Math::Fractal::Julia->set_max_iter($iters);
Math::Fractal::Julia->set_limit($limit);
Math::Fractal::Julia->set_bounds( $x1, $y1, $x2, $y2, $w, $h );
Math::Fractal::Julia->set_constant( $cx, $cy );
my $iter = Math::Fractal::Julia->point( $x, $y );

# Object Oriented usage:
my $julia = Math::Fractal::Julia->new(%options);
$julia->set_max_iter($iters);
$julia->set_limit($limit);
$julia->set_bounds( $x1, $y1, $x2, $y2, $w, $h );
$julia->set_constant( $cx, $cy );
my $iter = $julia->point( $x, $y );

DESCRIPTION

Calculates points in the set named after the French mathematician Gaston Julia.

METHODS

new()

new(%options)

my $julia = Math::Fractal::Julia->new();
my $julia = Math::Fractal::Julia->new(%options);

Creates a new Math::Fractal::Object. If no options are provided, the default values will be used.

Options:

  • max_iter => $iters

  • limit => $limit

  • bounds => [ $x1, $x2, $y1, $y2, $width, $height ]

  • constant => [ $cx, $cy ]

set_max_iter($max)

Math::Fractal::Julia->set_max_iter($max);
$julia->set_max_iter($max);

set_limit($limit)

Math::Fractal::Julia->set_limit($limit);
$julia->set_limit($limit);

set_bounds( $x1, $x2, $y1, $y2, $width, $height )

Math::Fractal::Julia->set_bounds( $x1, $x2, $y1, $y2, $width, $height );
$julia->set_bounds( $x1, $x2, $y1, $y2, $width, $height );

set_constant( $cx, $cy )

Math::Fractal::Julia->set_constant( $cx, $cy );
$julia->set_constant( $cx, $cy );

point( $x, $y )

$iter = Math::Fractal::Julia->point( $x, $y );
$iter = $julia->point( $x, $y );

SEE ALSO

Math::Fractal::Mandelbrot

AUTHOR

Jeffrey T. Palmer <jtpalmer@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Jeffrey T. Palmer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.