The following applet simulate a rectifier circuit.
The moving dots simulate the drift motion of election in the circuit.

VIEW or DOWNLOAD ejs xml source
then click to translate strings for selected locale.

Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop.