/* * * This application has was created by Timothy A. Graupmann. For * any questions or comments send email to tgraupmann@yahoo.com. * * This program provides a graphical user interface for the user * to navigate the "Non-Repeating Fractal". * */ #include #include BITMAP *screen1, *screen2; double magnitude(double re, double im) { return sqrt(re*re+im*im); } void julia(double hscal, double wscal, double htran, double wtran) { int x, y; int level, max_level; double cre, cim, zre, zim; double cmag, zmag; double vpos, hpos; double vinc, hinc; double i,j; int counter; x=0; y=0; level=0; max_level=21; cre=0.5; cim=0.5; cmag=magnitude(cre, cim); vpos=500*hscal+htran; hpos=500*wscal+wtran; vinc=hscal*2.0; hinc=wscal*2.0; i=-hpos; j=-vpos; counter=0; for(y=0; y<500; y++) { i=-hpos; for(x=0; x<500; x++) { zre=i; zim=j; level=0; zmag=magnitude(zre, zim); while((zmag