From c5008a4e62fb83eb71f5f94f622c01f2d8fe8b6b Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 22 Sep 2019 11:44:30 +0200 Subject: Supersampling - Random supersampling (prettier but quite slow) - WIP: bette color gradient --- header.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'header.h') diff --git a/header.h b/header.h index fbaca08..92b4d83 100644 --- a/header.h +++ b/header.h @@ -4,8 +4,8 @@ # include # include -# define MAX_ITERATION 210 -# define ESCAPE_RADIUS 2 +# define MAX_ITERATION 200 +# define ESCAPE_RADIUS 10 # define ESCAPE_RADIUS_SQUARED (ESCAPE_RADIUS * ESCAPE_RADIUS) # define PIXELS_CHANELS 3 @@ -62,6 +62,7 @@ typedef struct { double real_lo; double real_hi; + double imag_step; int width; double imag; Color *palette; @@ -81,6 +82,7 @@ void graphics_run(GState *state); // helper.c double map_range(double x, double src_lo, double src_hi, double dest_lo, double dest_hi); -int *inclusive_range(int start, int end); +Color helper_HSL_to_RGB(int hue, double saturation, double lightness); +double double_rand(void); #endif -- cgit