import java.awt.*; import java.awt.event.*; import java.applet.Applet; import java.awt.Image.*; public class Animatsioon extends Applet implements MouseListener, Runnable{ Image pilt; Image taust; int[] x=new int[100]; // massiiv 100-le arvule; int[] y=new int[100]; int alaServ=240; int r=5; int samm=1; int helvesteArv=0; public Animatsioon(){ addMouseListener(this); new Thread(this).start(); } public void paint(Graphics g){ if(taust==null)taust=laePilt("talvetaust.gif"); g.drawImage(taust, 0, 0, this); for(int i=0; i