Simple Spiral

_20080425_spiral_a.png
run the sketch—view the code

_20080425_spiral_b.png
run the sketch—view the code

How do you use it?
Move the mouse up and down to change the tightness of the spiral. In version b, moving the mouse left and right also affects the spacing. Clicking the mouse rotates the whole thing in 3-D space.

What is it?
A quick way to render a spiral.

Why is it cool?
When I had the idea to code a spiral, I assumed it would take days and involve all sorts of calculus and stuff. It took 3 lines of code, a for() loop, and 10 minutes start to finish.

Comments are closed.