Statische Anzeige Version

This commit is contained in:
2026-01-30 18:14:55 +01:00
parent 51c0ac2510
commit 7ee1bc6245
3 changed files with 10 additions and 13 deletions

View File

@@ -27,13 +27,9 @@ void drawMandelbrot() {
int iterationsMandelbrot{calculateMandelbrot(cReal, cImag)};
if (iterationsMandelbrot - 1 == maxIterations) {
DrawPixel(x, y, BLACK);
} else {
float t = static_cast<float>(iterationsMandelbrot) / maxIterations;
Color color = LerpColor(BLUE, RED, t);
DrawPixel(x, y, color);
}
float t = static_cast<float>(iterationsMandelbrot) / maxIterations;
Color color = LerpColor(BLUE, RED, t);
DrawPixel(x, y, color);
// std::cout << "Iterations: " << iterationsMandelbrot << '\n';
}
}