Annotation of QuadraticMandel/fractal_esp2.c, revision 1.1

1.1     ! cvsmgr      1: /*******************************************************************************
        !             2: +* Mandel del Alberto.
        !             3: +*
        !             4: +* 7.07.2005
        !             5: +*
        !             6: +* $Id: fractal_esp2.c,v 1.1 2009/11/10 22:08:51 rduran Exp $
        !             7: +* $Name:  $
        !             8: *******************************************************************************/
        !             9: # include <stdlib.h>
        !            10: # include <stdio.h>
        !            11: # include <string.h>
        !            12: # include <math.h>
        !            13: # include "genfractal.h"
        !            14: 
        !            15: int main(int argc, char *argv[])
        !            16: {
        !            17: int img_number = 0;
        !            18: char img_name[512];
        !            19: 
        !            20: 
        !            21:    if (argc != 6)
        !            22:    {
        !            23:       fprintf(stderr, "Usage: %s <output filename> <itermax> "
        !            24:                       "<side_length> <offset x> <offset y>\n", argv[0]);
        !            25:       return 1;
        !            26:    }
        !            27: 
        !            28:    printf("Fractal Generator for F^-_{0}\n");
        !            29:    printf("Generating fractal with the following parameters:\n\n");
        !            30:    printf("Iterations:  %d\n",  atoi(argv[2]));
        !            31:    printf("Xi:          %lf\n", 0.0);
        !            32:    printf("Eta:         %lf\n", 0.0);
        !            33:    printf("Side length: %lf\n", atof(argv[3]));
        !            34:    printf("Offset X:    %lf\n", atof(argv[4]));
        !            35:    printf("Offset Y:    %lf\n", atof(argv[5]));
        !            36: 
        !            37:    sprintf(img_name, "%s_%02d.png", argv[1], img_number++);
        !            38:    return GenFractalEspecial2(img_name, 0.0,           0.0,
        !            39:                               atoi(argv[2]), atof(argv[3]),
        !            40:                               atof(argv[4]), atof(argv[5]));
        !            41: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>