diff --git a/main.c b/main.c index d08acd7..448070b 100644 --- a/main.c +++ b/main.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -66,7 +67,7 @@ void draw_mandelbrot(int width, int height, int iterations) { //int g = (ret * 9 / iterations); //int b = (ret * 165 / iterations); //image_set_px(img, x, y, r,g,b); - int color = 255 * ret / (float) iterations; + int color = 255 * sqrt(ret / (float) iterations); image_set_px(img, x, y, color, color, color); } }