]> git.itanic.dy.fi Git - mandelbrot/commitdiff
Improve colors
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 1 May 2011 16:13:18 +0000 (19:13 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 1 May 2011 16:13:18 +0000 (19:13 +0300)
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
mandelbrot.c

index 35dc6c64b0405cd64ce4e0afa540a2201203bbf7..be706ebc1d15a01002c41f1943185afafabdd172 100644 (file)
@@ -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);