Basic HTML version of Foils prepared 13 July 98

Foil 36 RhombusTest Applet (cont'd)

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

The RhombusTest Applet
1 Now take into account d, h, and xoffset: y = 0; for ( int i = 0; i < 8; i++ ) { x = xoffset - i*d; y += h; for ( int j = 0; j < 8; j++ ) { x += length; square = new Rhombus( x, y, length, alpha ); rhombus.draw( g ); } }

in Table To:


© 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