This commit is contained in:
Sam
2023-09-09 09:18:39 +12:00
parent 7ed2e0a868
commit 54a9d8495a
4 changed files with 7 additions and 4 deletions

View File

@@ -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;

View File

@@ -31,7 +31,7 @@
render();
render_clear();
Draw_nodal(300, 100, 31, rotation, "blue");
Draw_nodal(300, 13, 4, rotation, "#FFD700");
// Draw_center(); //Debugging
@@ -65,6 +65,7 @@
ctx.lineTo(centerX + (Math.cos(rad(angle * z + rotate)) * radius), centerY + (Math.sin(rad(angle * z + rotate)) * radius));
}
ctx.strokeStyle = colour;
ctx.lineWidth = 8
ctx.stroke();
}