i have recreated a #JavaScript version here

http://iwant2study.org/ospsg/index.php/interactive-resources/physics/04-waves/04-light/117-light-intensity-simulation
[img]http://3.bp.blogspot.com/-sbEVGPU1kRs/VWLJLFi0QrI/AAAAAAAAtw0/V5whAj4iUdU/s1600/2015-05-25_1455.png[/img]
enjoy!