Back to the home page of this site This applets executes the graphics drawPolygon method. The fields x1 through x4 and y1 through y4 represent elements of the integer arrays passed as parameters to the method. The default parameters draw a rectangle to the left of the applet. Changing the values of the parameters will change the shape drawn.