diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2015-06-09 22:11:04 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2015-06-10 00:11:18 +1200 |
commit | 70b7e36de4a9db760c254b8f22d91ea4e6ddc9d8 (patch) | |
tree | e9a7d2666fb2a088b8913e6b851edeca251d1f64 /mbrot.c | |
parent | d29cb84f52f93e060c2ec0f020f56fea0636428d (diff) | |
download | fractal-gen-70b7e36de4a9db760c254b8f22d91ea4e6ddc9d8.tar.xz |
Made it easier to add new algos, added tricorn algo, burning ship lattice ship algo
Diffstat (limited to 'mbrot.c')
-rw-r--r-- | mbrot.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/mbrot.c b/mbrot.c deleted file mode 100644 index 6722b55..0000000 --- a/mbrot.c +++ /dev/null @@ -1,28 +0,0 @@ -#include "fractal-gen.h" - -void *generate_mbrot_section(void *section) -{ - data_section *d = (data_section*)section; - unsigned int x,y,i; - int idx = 0; - double a,b; - double complex z,c; - - for (y = d->core, b = (d->core*(3.5f/d->size)-1.75f); y < d->size; b+=((d->cores*3.5f)/d->size), y+=d->cores) - { - for (x = 0, a = -2.5f; x < d->size; a+=(3.5f/d->size), x++) - { - z = 0; - c = a+I*b; - for (i = 0; i < d->iterat; i++) - { - if (cabsf(z) >= 2) - break; - - z = cpow(z, d->power)+c; - } - d->data[idx++] = (255*i)/d->iterat; - } - } - return NULL; -} |