distance function video

Fri, 2011-01-07 10:17

26 particles move linearly at various speeds, bouncing off the edges. For each frame, for each pixel, find d_0 < d_1 < ... < d_25, the distance from the pixel to each particle. Then, if
2 d_1 > d_0 + d_2
color the pixel white; else, color it black.

Click through for a larger version.

party cleanup

Sat, 2010-11-06 17:25

After the party, there is the cleanup.

I made this with a little applet I wrote using Processing and the built-in camera on my laptop.

You can watch it bigger here. There is no sound.