RhombusTest Applet (cont’d)
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 ); } }
Previous slide
Next slide
Back to first slide
View graphic version