home *** CD-ROM | disk | FTP | other *** search
- bills_xy-trade4 {// modified for UF by Sylvie Gallet
- complex a;
- parameter complex p1;
- complex b;
- complex c;
- parameter complex p2;
- complex d;
- complex g;
- parameter complex p3;
- complex f;
- complex zold;
- complex Var_x;
- complex Var_y;
-
- void init(void)
- {
- a = real(p1);
- b = imag(p1);
- c = real(p2);
- d = imag(p2);
- g = real(p3);
- f = imag(p3);
- z = pixel+1/pixel;
- zold = pixel^g;
- }
- void loop(void)
- {
- Var_x = (real(z)-real(zold))^a;
- Var_y = (imag(z)-imag(zold))^b;
- zold = z;
- z = (Var_y +flip(Var_x));
- z = (fn1(z))^c - (fn2(zold))^d;
- }
- bool bailout(void)
- {
- return(|z| < f);
- }
- //SOURCE: decker.par
- }
-
-
- Carr2821a { // Modified Sylvie Gallet frm. [101324,3444],1996
- // Modified for IF..ELSE logic by Sylvie Gallet, March 1997
- // Optimized by Sylvie Gallet, April 1997
- complex ee;
- complex c;
- complex r;
- complex k;
- complex p;
- complex bailout;
- complex im1;
- parameter complex p1;
- complex im2;
- parameter complex p2;
- complex iter;
-
- void init(void)
- {
- ee = -0.1/pixel;
- z = c = conj(ee) + pixel;
- r = |z|;
- k = ee*0.9;
- p = k + flip(ee) + conj(0.01*ee) + pixel;
- bailout = 16;
- im1 = imag(p1);
- im2 = imag(p2);
- iter = 0;
- }
- void loop(void)
- {
- if ((iter == real(p1)))
- {
- p = (c^1.2)*1.5 + k;
- r = z = 0;
- }
- else if ((iter == im1))
- {
- p = conj(c)*2.25 + k;
- r = z = 0;
- }
- else if ((iter == real(p2)))
- {
- p = flip(c)*3.375 + k;
- r = z = 0;
- }
- else if ((iter == im2))
- {
- p = flip(c)*5.0625 + k;
- r = z = 0;
- }
- iter = iter + 1;
- z = real(r)*0.2 + sqr(z) + p;
- r = |z|;
- }
- bool bailout(void)
- {
- return(r <= bailout);
- }
- //SOURCE: lskinner.frm
- }
-
-
- Carr2821b { // Modified Sylvie Gallet frm. [101324,3444],1996
- // Modified for IF..ELSE logic by Sylvie Gallet, March 1997
- // Optimized by Sylvie Gallet, April 1997
- complex ee;
- complex c;
- complex r;
- complex k;
- complex p;
- complex bailout;
- complex im1;
- parameter complex p1;
- complex im2;
- parameter complex p2;
- complex iter;
-
- void init(void)
- {
- ee = 0.1/pixel;
- z = c = conj(ee) - pixel;
- r = |z|;
- k = ee*(-0.9);
- p = k + flip(ee) + conj(0.01*ee) - pixel;
- bailout = 16;
- im1 = imag(p1);
- im2 = imag(p2);
- iter = 0;
- }
- void loop(void)
- {
- if ((iter == real(p1)))
- {
- p = (c^1.2)*1.5 + k;
- r = z = 0;
- }
- else if ((iter == im1))
- {
- p = conj(c)*2.25 + k;
- r = z = 0;
- }
- else if ((iter == real(p2)))
- {
- p = flip(c)*3.375 + k;
- r = z = 0;
- }
- else if ((iter == im2))
- {
- p = flip(c)*5.0625 + k;
- r = z = 0;
- }
- iter = iter + 1;
- z = real(r)*0.2 + sqr(z) + p;
- r = |z|;
- }
- bool bailout(void)
- {
- return(r <= bailout);
- }
- //SOURCE: lskinner.frm
- }
-
-
- general_jul-2lines {
- //
- // "2 general lines" coloring method for Julia sets
- // c = Julia parameter, hardcoded
- // real(p1) = x-line a
- // imag(p1) = x-line b
- // real(p2) = x-line c
- // imag(p2) = y-line a
- // real(p3) = y-line b
- // imag(p3) = y-line c
- // bailout hardcoded to 10^12
- // use "decomp=256" coloring
- //
- // Original Fractint formula by Kerry Mitchell, 26 Aug 98
- // Modified for UF by Ken Childress, 02 Nov 99
- //
- complex zc;
- complex c;
- parameter complex juliacoords;
- complex rmin;
- complex ax;
- parameter complex linea;
- complex bx;
- parameter complex lineb;
- complex cx;
- parameter complex linec;
- complex ay;
- complex by;
- complex cy;
- complex Var_x;
- complex Var_y;
- complex tempx;
- complex tempy;
- complex temp;
- complex r;
- parameter real bailout;
-
- void init(void)
- {
- zc = pixel;
- c = juliacoords;
- rmin = 1.0e12;
- ax = real(linea);
- bx = real(lineb);
- cx = real(linec);
- ay = imag(linea);
- by = imag(lineb);
- cy = imag(linec);
-
- }
- void loop(void)
- {
- zc = sqr(zc) + c;
- Var_x = real(zc);
- Var_y = imag(zc);
- tempx = ax * Var_x + bx * Var_y + cx;
- tempy = ay * Var_x + by * Var_y + cy;
- temp = tempx + flip(tempy);
- r = |temp|;
-
- if ((r < rmin))
- {
- rmin = r;
- z = temp;
- }
-
- }
- bool bailout(void)
- {
- return(|zc| < bailout);
- }
- void description(void)
- {
- this.title = "Julia - 2 General Lines";
- this.periodicity = 0;
- this.maxiter = 1000;
-
-
- juliacoords.caption = "Julia Seed";
- juliacoords.default = (0.26, 0.0014);
- juliacoords.hint = "Julia seed value.";
-
-
-
- linea.caption = "Line A";
- linea.default = (0.0, 0.0);
- linea.hint = "Real = Line A x-value, Imag = Line A y-value";
-
-
-
- lineb.caption = "Line B";
- lineb.default = (1.0, 0.0);
- lineb.hint = "Real = Line B x-value, Imag = Line B y-value";
-
-
-
- linec.caption = "Line C";
- linec.default = (1.0, 1.0);
- linec.hint = "Real = Line C x-value, Imag = Line C y-value";
-
-
-
- bailout.caption = "Bailout Value";
- bailout.default = 1.0e12;
- bailout.hint = "The bailout value.";
-
- }
- }
-
-
-