diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-04-05 16:55:55 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-04-05 16:55:55 +0200 |
commit | 8f1c11e77e7760de47f9a13b8837d652e4359f42 (patch) | |
tree | 018f1f6c69e64d287e7f1df894bfcc1a54d33e4a | |
parent | ba6b0df2033095931c4b74744fdb3894b85ed05d (diff) |
Fix y-invert
-rw-r--r-- | attract.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |