From: Timo Kokkonen Date: Sun, 1 May 2011 16:13:18 +0000 (+0300) Subject: Improve colors X-Git-Url: http://git.itanic.dy.fi/?p=mandelbrot;a=commitdiff_plain;h=67d26aaed387f95b62a74ce80d2b0c43e7212c3d Improve colors Signed-off-by: Timo Kokkonen --- 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);