package Graphics; public class ActionThread implements Runnable{ canvas screen; double angle; int frameno=0; public ActionThread() { } public ActionThread(canvas s) { screen=s; } public void run() { while(true) { frameno++; if(frameno>screen.scene.totalframes) frameno=1; System.out.println("Animating frame no : " +frameno); // Compute animation matrix for animations int i; for(i=0;i