mirror of
https://github.com/SamEyeBam/animate.git
synced 2026-11-18 10:07:46 +00:00
play
This commit is contained in:
1 parent
7ed2e0a868
commit
54a9d8495a
4 files changed
+7
-4
No files matched your search
@@ -56,7 +56,7 @@ function drawSpiral(angle) {
|
||||
ctx.moveTo(cX, cY);
|
||||
const nColor = lerpRGB(startColor, endColor, Math.cos(rad(n / 2)));
|
||||
|
||||
const nAngle = n * angle + Math.sin(angle * (n - angle * 100) * 3);
|
||||
const nAngle = n * angle + Math.sin(angle * (n - angle * 100) * 2);
|
||||
const radius = distanceMultiplier * n;
|
||||
const xCoord = radius * Math.cos(nAngle) + centerX;
|
||||
const yCoord = radius * Math.sin(nAngle) + centerY;
|
||||
|
||||
Reference in new issue
Block a user