Basic HTML version of Foils prepared 13 July 98

Foil 80 MovingPolygons.java

From Java Academy II:Advanced Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo


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 ); ... }



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998