Annotation of QuadraticMandel/fractal_esp7.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_esp7.c,v 1.1 2009/11/10 22:08:51 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 != 7)
39: {
40: fprintf(stderr, "Usage: %s <output filename> <itermax> <b> "
41: "<side_length> <offset x> <offset y>\n", argv[0]);
42: return 1;
43: }
44:
45: printf("Fractal Generator for F^+_{b,\\pm 2b}\n");
46: printf("Generating fractal with the following parameters:\n\n");
47: printf("Iterations: %d\n", atoi(argv[2]));
48: printf("b: %lf\n", atof(argv[3]));
49: printf("Side length: %lf\n", atof(argv[4]));
50: printf("Offset X: %lf\n", atof(argv[5]));
51: printf("Offset Y: %lf\n", atof(argv[6]));
52:
53: sprintf(img_name, "%s_%02d.png", argv[1], img_number++);
54: return GenFractalEspecial7(img_name, 0.0, atof(argv[3]),
55: atoi(argv[2]), atof(argv[4]),
56: atof(argv[5]), atof(argv[6]));
57: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>