#include #include #include typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return sqrt(a.x*a.x + a.y*a.y); } complex mapPoint(int width,int height,double radius,int x,int y){ complex c; int l = (widthradius){ putpixel(x,y,i%15+1); break; } z0 = z1; } if(i>n) putpixel(x,y,0); } } int main(int argC, char* argV[]) { int width, height; complex c; if(argC != 7) printf("Usage : %s "); else{ width = atoi(argV[1]); height = atoi(argV[2]); c.x = atof(argV[3]); c.y = atof(argV[4]); initwindow(width,height,"Julia Set"); juliaSet(width,height,c,atof(argV[5]),atoi(argV[6])); getch(); } return 0; }