Difference between revisions of "Playpen"

From Progzoo
Jump to: navigation, search
(Polygon)
(Polygon)
Line 12: Line 12:
 
<blurb lang="java">
 
<blurb lang="java">
 
The Polygon object may have a number of Points added.
 
The Polygon object may have a number of Points added.
</blurb>  
+
</blurb>  
 
<prog lang='java'>
 
<prog lang='java'>
 
static void drawFlag(Graphics2D g)
 
static void drawFlag(Graphics2D g)

Revision as of 13:33, 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]