From a46abca7074e3e6f388a7b745e994a5be7cae760 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sun, 9 Nov 2025 15:27:23 +0100 Subject: [PATCH] format ... --- src/Main.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Main.cpp b/src/Main.cpp index 960b7d0..4b90fbd 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -199,13 +199,9 @@ static void CreateGpuBuffer() { static std::vector GetTransformMatrixBlended(float dt) { std::vector result(TRANSFORMATION_COUNT); - constexpr auto lerp = [](float x, float y, float t){ - return x * (1 - t) + y * t; - }; + constexpr auto lerp = [](float x, float y, float t) { return x * (1 - t) + y * t; }; - constexpr auto eased = [lerp](float x, float y, float t){ - return lerp(x, y, -(std::cos(3.14 * t) - 1.0f) / 2.0f); - }; + constexpr auto eased = [lerp](float x, float y, float t) { return lerp(x, y, -(std::cos(3.14 * t) - 1.0f) / 2.0f); }; float blendFactor = std::min(ANIMATION_TIME, dt) / ANIMATION_TIME; @@ -302,7 +298,7 @@ int main() { secondsTimer = 0.0f; fps = 0; } - + if (animationTimer >= ANIMATION_TIME + ANIMATION_STILL_TIME) { animationTimer = 0; GenNewFractal();