aboutsummaryrefslogtreecommitdiff
path: root/header.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-08-27 19:19:59 +0200
committerCharles <sircharlesaze@gmail.com>2019-08-27 19:19:59 +0200
commit003e9e628b3e7b516d3d70d78b6ba97bca69c813 (patch)
treeb775b5a889bee1ef32fa37713a43964fc6bd1d43 /header.h
parentce5cf1b60dae81540b2db366b1408a961f771dcc (diff)
downloadmandelbrot_cpu-003e9e628b3e7b516d3d70d78b6ba97bca69c813.tar.gz
mandelbrot_cpu-003e9e628b3e7b516d3d70d78b6ba97bca69c813.tar.bz2
mandelbrot_cpu-003e9e628b3e7b516d3d70d78b6ba97bca69c813.zip
Brightness level according to step before excusion
The test to check if something is in the set return -1 else returns the number of steps, then map the step to a brightness of the pixel.
Diffstat (limited to 'header.h')
-rw-r--r--header.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/header.h b/header.h
index 97e3de6..8873077 100644
--- a/header.h
+++ b/header.h
@@ -13,8 +13,8 @@
# define AXIS_DIV 46.0
# define AXIS_STEP ((HI - LO) / AXIS_DIV)
-# define MAX_ITERATION 50
-# define _INFINITY 15
+# define MAX_ITERATION 30
+# define _INFINITY 4
typedef struct
@@ -31,7 +31,7 @@ typedef struct
} GConf;
// mandelbrot.c
-double mandelbrot_in_set(double _Complex c);
+int mandelbrot_in_set(double _Complex c);
void mandelbrot_print(void);
// graphics.c