MovingPolygons.java
Our sample program instantiates an array of MovablePolygons: public void init() { // create a square of "radius" 50: polygon[0] = new MovablePolygon( 75, 75, 50, 4 ); polygon[0].setDelta( 2, 3 ); polygon[0].setColor( Color.red ); … }