Annotation of QuadraticMandel/fractal_00.c, revision 1.2
1.1 cvsmgr 1: /*******************************************************************************
1.2 ! cvsmgr 2: +* Fractal set generation for quadratic maps.
! 3: +* Copyright (C) 2011, Raúl Durán Díaz, raul.duran@uah.es
! 4: +*
! 5: +* This program is free software: you can redistribute it and/or modify
! 6: +* it under the terms of the GNU General Public License as published by
! 7: +* the Free Software Foundation, either version 3 of the License, or
! 8: +* (at your option) any later version.
! 9: +*
! 10: +* This program is distributed in the hope that it will be useful,
! 11: +* but WITHOUT ANY WARRANTY; without even the implied warranty of
! 12: +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 13: +* GNU General Public License for more details.
! 14: +*
! 15: +* You should have received a copy of the GNU General Public License
! 16: +* along with this program. If not, see <http://www.gnu.org/licenses/>.
! 17: *******************************************************************************/
! 18: /*******************************************************************************
1.1 cvsmgr 19: +* Mandel del Alberto.
20: +*
21: +* 7.07.2005
22: +*
23: +* $Id: fractal_00.c,v 1.3 2009/02/05 08:40:37 rduran Exp $
24: +* $Name: $
25: *******************************************************************************/
26: # include <stdlib.h>
27: # include <stdio.h>
28: # include <string.h>
29: # include <math.h>
30: # include "genfractal.h"
31:
32: int main(int argc, char *argv[])
33: {
34: int img_number = 0;
35: char img_name[512];
36:
37:
38: if (argc != 6)
39: {
40: fprintf(stderr, "Usage: %s <output filename> <itermax> "
41: "<side_length> <offset x> <offset y>\n", argv[0]);
42: return 1;
43: }
44:
45: printf("Fractal Generator for Xi = 0, Eta = 0\n");
46: printf("Generating fractal with the following parameters:\n\n");
47: printf("Iterations: %d\n", atoi(argv[2]));
48: printf("Xi: %lf\n", 0.0);
49: printf("Eta: %lf\n", 0.0);
50: printf("Side length: %lf\n", atof(argv[3]));
51: printf("Offset X: %lf\n", atof(argv[4]));
52: printf("Offset Y: %lf\n", atof(argv[5]));
53:
54: sprintf(img_name, "%s_%02d.png", argv[1], img_number++);
55: return GenFractal_00(img_name, 0.0, 0.0,
56: atoi(argv[2]), atof(argv[3]),
57: atof(argv[4]), atof(argv[5]));
58: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>