summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-04-05 16:55:55 +0200
committertomsmeding <tom.smeding@gmail.com>2017-04-05 16:55:55 +0200
commit8f1c11e77e7760de47f9a13b8837d652e4359f42 (patch)
tree018f1f6c69e64d287e7f1df894bfcc1a54d33e4a
parentba6b0df2033095931c4b74744fdb3894b85ed05d (diff)
Fix y-invert
-rw-r--r--attract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attract.c b/attract.c
index 838ad76..87ca6a1 100644
--- a/attract.c
+++ b/attract.c
@@ -80,7 +80,7 @@ static void* thread_entry(void *arg_vp){
for(int ix=0;ix<cfg.width;ix++){
const double complex start=CMPLX(
(double)(ix-cfg.width/2)/cfg.unitsz+cfg.midx,
- (double)(iy-cfg.height/2)/cfg.unitsz+cfg.midy);
+ cfg.midy-(double)(iy-cfg.height/2)/cfg.unitsz);
double complex z=start;
for(int i=0;i<MAXITER;i++){
z=att_func(z,cfg.exponent);