packages icon
:::::::::::::
What is it?
:::::::::::::

Fract is a simple programm to create images of the following fractals
types:
     
Mandelbrot set
Julia set of z^2+c, c*sinz, c*cosz, c*expz
Spider
Phoenix
Glass
Noel1
Noel2
Newton Power
Tetrate
Barnsley1
Barnsley2
Barnsley3

The image created is saved in GIF format;  a ".dat" text file contains
all the information of the computed image.

::::::::::::::::
How to use it? 
::::::::::::::::

The syntax is :
              
fract {-m -j -s -c -e -sp -ph -g -n1 -n2 -nw -t -b1 -b2 -b3 }
      -x width -y height [-r] [-i] [-deg]
      [-x1] [-x2] [-y1] [-y2]
      [-o] [-p]
Params in [] are optional

The first flag MUST be the one that specifies the fractal type:      

-m  : Mandelbrot set.      Default settings: 
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2)
                           Perturbation: 0   

-j  : Julia set of z^2 +c. Default settings:
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2) 
                           Constant: -1 

-s  : Julia set of c*sinz. Default settings:
                           Top Left Corner: (-4,4)
                           Bottom Right Corner: (4,-4)
                           Constant: 1
                          
-c  : Julia set of c*cosz. Default settings:
                           Top Left Corner: (-4,4)
                           Bottom Right Corner: (4,-4)
                           Constant: 1

-e  : Julia set of c*expz. Default settings:
                           Top Left Corner: (0,2)
                           Bottom Right Corner: (4,-2)
                           Constant: 1

-sp : Spider.              Defeault settings:
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2)
                           Perturbation: 0
                          
-ph : Phoenix.             Default settings: 
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2)
                           Perturbation: 0   

-g  : Glass.               Default settings: 
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2)
                           Perturbation: 0   

-n1 : Noel1.               Default settings: 
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2)
                           Perturbation: 0   

-n2 : Noel2.               Default settings: 
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2)
                           Perturbation: 0   

-nw : Newton Power.        Default settings: 
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2)
                           Degree: 3
                           Constant: 0   

-t  : Tetrate.             Default settings: 
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2)
                           Perturbation: 0   

-b1 : Barnsley1.           Default settings:
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2) 
                           Constant: 0.6+1.1i

-b2 : Barnsley2.           Default settings:
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2) 
                           Constant: 0.6+1.1i

-b3 : Barnsley3.           Default settings:
                           Top Left Corner: (-2,2)
                           Bottom Right Corner: (2,-2) 
                           Constant: 0.1+0.36i

Then you have to specify the image resolution using the '-x' and the
'-y' flags. 

Optional parameters: 

-x1 , -x2 , -y1 , -y2 : set corners for computation 

[-r]   : set perturbation or constant (it depends on the fractal type) real
         part 

[-i]   : set perturbation or constant imaginary part

[-deg] : set degree for Newton Power. It must be greater than 2;
         otherwise the default value (that is 3) is used.

[-o]   : set output file name; ".gif" extension is not necessary.
         The text file has the same name of the image, but the extension is 
         ".dat". Default names are "out.gif" and "out.dat" 

[-p]   : set "Fractint style" palette file. Default is "vga.map" 


:::::::::::
Compiling
:::::::::::

To compile the program type: 
cc -O3 fract.c -o fract -lm 

(Its +03 on hpux - but you knew that :)

:::::::::
Author
:::::::::

Massimo Casal
Viale Volontari della Liberta' 36/2
33100 Udine
Italy

E-mail addresses:
casal@udmi5400.cineca.it
mcasal@nyx.cs.du.edu