Produces an Archimedean spiral. It's a generator.
const s = spiral(0.1, 1);for (const coord of s) { // Use Polar coord... if (coord.step === 1000) break; // Stop after 1000 iterations} Copy
const s = spiral(0.1, 1);for (const coord of s) { // Use Polar coord... if (coord.step === 1000) break; // Stop after 1000 iterations}
0.1 pretty rounded, at around 5 it starts breaking down
At smoothness 0.1, zoom starting at 1 is OK
Produces an Archimedean spiral. It's a generator.