/*******************************************************************************
+* Mandel del Alberto.
+*
+* 7.07.2005
+*
+* $Id: fractal_esp1.c,v 1.1 2011/10/18 08:42: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>