From 67d26aaed387f95b62a74ce80d2b0c43e7212c3d Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sun, 1 May 2011 19:13:18 +0300 Subject: [PATCH] Improve colors Signed-off-by: Timo Kokkonen --- mandelbrot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mandelbrot.c b/mandelbrot.c index 35dc6c6..be706eb 100644 --- a/mandelbrot.c +++ b/mandelbrot.c @@ -53,7 +53,8 @@ int draw_mandelbrot(struct SDL_Surface *screen, double x1, double x2, putpixel(screen, xs, ys, 255, 255, 255); else putpixel(screen, xs, ys, - iteration, 0, 0); + iteration * 8, iteration, + iteration / 4); } SDL_Flip(screen); -- 2.44.0