The applet uses colored squares to illustrate the conversion of potential energy into kinetic energy and vice versa during the motion of a simple pendulum.