http://weelookang.blogspot.com/2011/10/ejs-open-source-single-slit-diffraction.html