Processing: interference

Click the image to see the sketch

Click for an interactive version