I've been reading about animation using Java applets and I've come across this example from [URL]http://www.javaworld.com/jw-03-1996/animation/Example4Applet.html[/URL] I'm having a lot of trouble understanding what is going on (that is, the maths behind it all). Now I know sine as sin in trigonometry problems and I know that the applet does indeed display the sine wave as would be plotted on a graph but what's with multiplying by such tiny numbers and adding 1, adding or subtracting the frame to the iterator? More related to java, what's a dimension and how does it take the size() method?