#include "stdio.h" #include "stdlib.h" #include "math.h" #include #include #include "paulslib.h" #include "bitmaplib.h" #define NX 1000 #define NY 1000 #define N 5000000 #define SCALE (NX / 4) /* Cantor set curved I.F.S. Union of circle curve set with Cantor dust set */ int main(int argc,char **argv) { int i,j; int ix,iy; int n,p; double r,x=0.3,y=0.1,x1,y1; BITMAP *image,white={65535,65535,65535},black={0,0,0}; char fname[64]; FILE *fptr; /* Create the image */ image = CreateBitmap(NX,NY); EraseBitmap(image,NX,NY,white); srand(time(NULL)); for (n=0;n