diff --git a/C++/Mandelbrot explorer/main.cpp b/C++/Mandelbrot explorer/main.cpp index 2c15cc6..f94e381 100644 --- a/C++/Mandelbrot explorer/main.cpp +++ b/C++/Mandelbrot explorer/main.cpp @@ -33,10 +33,8 @@ public: Zre = tX; iteration++; } - long double ratio1 = (long double)iteration - std::log2(std::log2(Zre*Zre + Zim*Zim)) / m_maxIterations; - long double ratio2 = (long double)iteration - std::log(std::log(Zre*Zre * Zim*Zim)) / m_maxIterations; - long double ratio3 = (long double)iteration - std::log10(std::log10(Zre*Zre - Zim*Zim)) / m_maxIterations; - olc::Pixel colour = olc::Pixel(ratio1 + 255.0f, ratio2 + 255.0f, ratio3 + 255.0f); + long double ratio = (long double)iteration - std::log2(std::log2(Zre*Zre + Zim*Zim)) / m_maxIterations; + olc::Pixel colour = olc::Pixel(ratio, ratio, ratio); DrawRect(pX, pY, 1, 1, colour); } } @@ -61,7 +59,7 @@ private: long double m_x = 1.0f; long double m_y = 1.0f; long double m_scale = 0.7f; - int m_maxIterations = 15; + int m_maxIterations = 100; std::map m_palete; }; diff --git a/C++/Mandelbrot explorer/out.exe b/C++/Mandelbrot explorer/out.exe index 1c11f43..bf54786 100644 Binary files a/C++/Mandelbrot explorer/out.exe and b/C++/Mandelbrot explorer/out.exe differ