Overlapping Shifting Boxes With Shadows

Screenshot 2014-10-24 19.32.46

I was experimenting with abstract art and vector maths to simulate shadows from an artificial light source. In this experiment the source of light is controlled by the horizontal position of the mouse cursor. It was inspired by a CD cover I saw somewhere. Here is a sample screen capture:

You can see a unique sequence of the live running code here:


Also here is a black and white variation on the above that has no shadows but is still interesting on its own.

exp13blackandwhiteshapes (4)

Screenshot 2016-03-05 19.59.11

Screenshot 2016-03-05 19.43.22

Screenshot 2016-03-05 19.43.45

Here is the running code for it:


Overlapping Shifting Boxes With Shadows