/*******************************************************************************
+* 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_esp1.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 != 6)
{
fprintf(stderr, "Usage: %s <output filename> <itermax> "
"<side_length> <offset x> <offset y>\n", argv[0]);
return 1;
}
printf("Fractal Generator for F^+_{0}\n");
printf("Generating fractal with the following parameters:\n\n");
printf("Iterations: %d\n", atoi(argv[2]));
printf("Xi: %lf\n", 0.0);
printf("Eta: %lf\n", 0.0);
printf("Side length: %lf\n", atof(argv[3]));
printf("Offset X: %lf\n", atof(argv[4]));
printf("Offset Y: %lf\n", atof(argv[5]));
sprintf(img_name, "%s_%02d.png", argv[1], img_number++);
return GenFractalEspecial1(img_name, 0.0, 0.0,
atoi(argv[2]), atof(argv[3]),
atof(argv[4]), atof(argv[5]));
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>