See circular, linear or wild for other examples. This page uses javascript to calculate the applet size.