/*******************************************************************************
+* Fractal set generation for quadratic maps.
+* Copyright (C) 2011, Raúl Durán Díaz, raul.duran@uah.es
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
/*******************************************************************************
+* Mandel del Alberto.
+*
+* 7.07.2005
+*
+* $Id: fractal_esp7.c,v 1.2 2011/10/18 09:02:34 cvsmgr Exp $
+* $Name: $
*******************************************************************************/
# include <stdlib.h>
# include <stdio.h>
# include <string.h>
# include <math.h>
# include "genfractal.h"
int main(int argc, char *argv[])
{
int img_number = 0;
char img_name[512];
if (argc != 7)
{
fprintf(stderr, "Usage: %s <output filename> <itermax> <b> "
"<side_length> <offset x> <offset y>\n", argv[0]);
return 1;
}
printf("Fractal Generator for F^+_{b,\\pm 2b}\n");
printf("Generating fractal with the following parameters:\n\n");
printf("Iterations: %d\n", atoi(argv[2]));
printf("b: %lf\n", atof(argv[3]));
printf("Side length: %lf\n", atof(argv[4]));
printf("Offset X: %lf\n", atof(argv[5]));
printf("Offset Y: %lf\n", atof(argv[6]));
sprintf(img_name, "%s_%02d.png", argv[1], img_number++);
return GenFractalEspecial7(img_name, 0.0, atof(argv[3]),
atoi(argv[2]), atof(argv[4]),
atof(argv[5]), atof(argv[6]));
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>