Difference between revisions of "Test"

From Progzoo
Jump to: navigation, search
(Qatar)
Line 7: Line 7:
 
}
 
}
 
</prog>
 
</prog>
<answer lang="java">
+
 
static void drawFlag(Graphics2D g){
 
  Polygon pillar = new Polygon(
 
  new int[]{0,84,125,84, 0},
 
  new int[]{0, 0,  9,17,17},5);
 
  g.setColor(new Color(128,0,0));
 
  g.fillRect(0,0,300,153);
 
  g.setColor(Color.white);
 
  for (int i=0;i&lt;9;i++){
 
    g.fillPolygon(pillar);
 
    g.translate(0,17);
 
  }
 
}
 
</answer>
 
 
</question>
 
</question>

Revision as of 16:23, 7 October 2008

Qatar


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