From 003e9e628b3e7b516d3d70d78b6ba97bca69c813 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 27 Aug 2019 19:19:59 +0200 Subject: 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. --- header.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'header.h') 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 -- cgit