Package codedraw

Interface Animation


public interface Animation
The animation interface can be implemented to create animations and interactive applications. Pass an instance of the Animation interface to CodeDraw.run(Animation), BorderlessWindow.run(Animation) or FullScreen.run(Animation). The functions in this interface are executed in order: First, the event methods like onMouseMove(MouseMoveEvent) are called. Second, the simulate() method is called. Third, the draw(Image) method is called.