TriangleTest Applet (cont’d)
The test applet draws one triangle and fills the other: public void paint( Graphics g ) { g.drawPolygon( p1 ); g.fillPolygon( p2 ); }
In the exercises, you are asked to draw an equilateral triangle…
Previous slide
Next slide
Back to first slide
View graphic version