Annotation of QuadraticMandel/fractal_00.c, revision 1.1
1.1 ! cvsmgr 1: /*******************************************************************************
! 2: +* Mandel del Alberto.
! 3: +*
! 4: +* 7.07.2005
! 5: +*
! 6: +* $Id: fractal_00.c,v 1.3 2009/02/05 08:40:37 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 Xi = 0, Eta = 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 GenFractal_00(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>