From eadf04184ecb5a09b8c1b0747863e40a573fd460 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 30 Mar 2023 11:58:32 +1300 Subject: [PATCH] update --- Catalogue/SpiralAccident/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Catalogue/SpiralAccident/script.js b/Catalogue/SpiralAccident/script.js index ff80044..2dcf4db 100644 --- a/Catalogue/SpiralAccident/script.js +++ b/Catalogue/SpiralAccident/script.js @@ -12,7 +12,7 @@ function setCanvasSize() { setCanvasSize(); window.addEventListener("resize", setCanvasSize); -const degPerSec = 0.00000015; +const degPerSec = 0.000001; const maxTime = 99999999; let startingRotation = 1; @@ -53,7 +53,7 @@ function drawSpiral(angle) { for (let n = 0; n < maxIterations; n++) { const nColor = lerpRGB(startColor, endColor, Math.cos(rad(n / 2))); - const nAngle = n * angle + Math.sin(angle * n * 3); + const nAngle = n * angle + Math.sin(angle * n * 2); const radius = distanceMultiplier * n; const xCoord = radius * Math.cos(nAngle) + centerX; const yCoord = radius * Math.sin(nAngle) + centerY;