Difference between revisions of "Playpen"

From Progzoo
Jump to: navigation, search
(Polygon)
(Polygon)
Line 25: Line 25:
 
   g.drawPolygon(tri);
 
   g.drawPolygon(tri);
 
}
 
}
</prog>  
+
</prog>
 
</question>
 
</question>

Revision as of 14:29, 18 November 2007

A polygon is an angular shape such as a triangle or a hexagon. We need tto specify a whole list of points to draw or fill a polygon.

Polygon

<img src="/img/drawPoly.png" style="float:left;border-width:thin;border-style:solid"/>


The Polygon object may have a number of Points added.


[Font] [Default] [Show] [Resize] [History] [Profile]