This Java applet animates grains of sand falling to form a heap.
You can specify the size of the applet as well as its different colors (the background and the heap), the size of the grains of sand and the refreshing period of the animation (in milliseconds).
Here is the source code of the applet:
Click here to download the applet and its source code. |