Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Click record or press 'R'
to start/stop recording (max. 10 secs)

Click capture
to take a screenshot


Spiral

// Animated log spiral. color RGB(x, y, t) { float radius = dist(x, y, 0, 0); // cartesian to polar float angle = atan2(x, y) + t; // cartesian to polar; turns with time float value = cos(angle*3 - log(radius)*12); // the spiral float luma = (value + 1) * 127; return color(luma); }

Spiral

// Animated log spiral. color RGB(x, y, t) { float radius = dist(x, y, 0, 0); // cartesian to polar float angle = atan2(x, y) + t; // cartesian to polar; turns with time float value = cos(angle*3 - log(radius)*12); // the spiral float luma = (value + 1) * 127; return color(luma); }
e.g. "mouse, keyboard"
e.g. "visualization, fractal, mouse"
learn more about Creative Commons

As a Plus+ Member feature, this source code is hidden by the owner.