Part of Joptics, an ensemble of teaching resources for Physical Optics at university level as part of physics or optics and optometry studies. http://www.ub.edu/javaoptics/index-en.html
This applet shows the Fresnel and Fraunhofer diffraction patterns. The applet includes some default objects such as the slit, the rectangle and the circle, whose geometrical characteristics can be modified.