aboutsummaryrefslogtreecommitdiff
path: root/header.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-08-28 11:54:17 +0200
committerCharles <sircharlesaze@gmail.com>2019-08-28 11:54:17 +0200
commitff61da6fb9720106d7869a0e5026810450d8f515 (patch)
treefa12610ddaee05343a0e1dfc9a034d84d1b86337 /header.h
parentf7884d1aec1c803149a63d2811d767704d62ce77 (diff)
downloadmandelbrot-ff61da6fb9720106d7869a0e5026810450d8f515.tar.gz
mandelbrot-ff61da6fb9720106d7869a0e5026810450d8f515.tar.bz2
mandelbrot-ff61da6fb9720106d7869a0e5026810450d8f515.zip
Color Palette, need shortcut
Added color palette instead of brighness level to display the set boundaries. Vim-like shortcut to move around.
Diffstat (limited to 'header.h')
-rw-r--r--header.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/header.h b/header.h
index 3f86f46..9799715 100644
--- a/header.h
+++ b/header.h
@@ -10,8 +10,12 @@
# define IMAG_LO -2.0
# define IMAG_HI 2.0
-# define MAX_ITERATION 30
-# define _INFINITY 4
+# define MAX_ITERATION 35
+# define ESCAPE_VALUE 2
+
+/* typedef long double LDouble; */
+
+typedef int Color;
typedef struct
{
@@ -24,6 +28,7 @@ typedef struct
double real_hi;
double imag_lo;
double imag_hi;
+ Color *palette;
} GState;
// mandelbrot.c