aboutsummaryrefslogtreecommitdiff
path: root/header.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-08-28 17:36:21 +0200
committerCharles <sircharlesaze@gmail.com>2019-08-28 17:36:21 +0200
commitec7cec7303aa642d234f444208a044dcc87904a4 (patch)
tree5a0c29bd2c51b7b9b63b63935c0be5740e473853 /header.h
parent29efc28aec91f7b9ca20865d54a9d570f409476e (diff)
downloadmandelbrot-ec7cec7303aa642d234f444208a044dcc87904a4.tar.gz
mandelbrot-ec7cec7303aa642d234f444208a044dcc87904a4.tar.bz2
mandelbrot-ec7cec7303aa642d234f444208a044dcc87904a4.zip
Mouse center selection and zoom
- Right click to select a new center - Mouse Wheel to zoom in and out. - WIP: drag picture with left click
Diffstat (limited to 'header.h')
-rw-r--r--header.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/header.h b/header.h
index 34d616b..cd5a988 100644
--- a/header.h
+++ b/header.h
@@ -10,7 +10,7 @@
# define REAL_RANGE 4.0
# define IMAG_RANGE 4.0
-# define MAX_ITERATION 50
+# define MAX_ITERATION 20
# define ESCAPE_VALUE 2
typedef unsigned char Byte;
@@ -45,6 +45,7 @@ typedef struct
double imag_range;
Color *palette;
Color in_set_color;
+ bool moving;
} GState;
// mandelbrot.c