]> git.itanic.dy.fi Git - mandelbrot/blobdiff - mandelbrot.c
Improve colors
[mandelbrot] / 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);