Difference between revisions of "Assessment 2012 Easy"

From Progzoo
Jump to: navigation, search
(Naval Jack)
(Naval Jack)
Line 4: Line 4:
 
==Naval Jack==
 
==Naval Jack==
 
<question width="342" height="170" imgOut="flag.png" className="Raster" title="Naval Jack" cols="60">
 
<question width="342" height="170" imgOut="flag.png" className="Raster" title="Naval Jack" cols="60">
*342 by 170
+
*340 by 255
 
*The blue RBG 0,41,140
 
*The blue RBG 0,41,140
 
*The stars have radius 6
 
*The stars have radius 6
Line 11: Line 11:
 
static void drawFlag(Graphics2D g){
 
static void drawFlag(Graphics2D g){
 
   g.setColor(new Color(0,41,140));
 
   g.setColor(new Color(0,41,140));
   drawStar(g,221,85,24);
+
   drawStar(g,170,127,12);
 
}
 
}
 
static void drawStar(Graphics2D g,int x, int y, int r)
 
static void drawStar(Graphics2D g,int x, int y, int r)
 
{
 
{
 
   Polygon star = new Polygon(
 
   Polygon star = new Polygon(
   new int[]{0,11,48,18,30,0,-30,-18,-48,-11},
+
   new int[]{0,22,95,36,59,0,-59,-36,-95,-22},
   new int[]{-50,-16,-16,6,41,18,41,6,-16,-16},10);
+
   new int[]{-100,-31,-31,12,81,38,81,12,-31,-31},10);
 
   g.translate(x,y);
 
   g.translate(x,y);
 
   g.scale(r/100.0,r/100.0);
 
   g.scale(r/100.0,r/100.0);

Revision as of 13:35, 29 August 2012

Each of these flags is worth 9 points.

Naval Jack

  • 340 by 255
  • The blue RBG 0,41,140
  • The stars have radius 6
Diversion


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