The Polygon Applet

Above this text you should see a triangle, generated by a Java applet. Notice its points and how the polygon is then filled.

This is for those students who wanted to use fillPolygon for lab 3

Here is its source.

I also show an example of writing a method that the API does not provide (drawTriangles).
The idea is that you can resuse it again and again.