Difference between revisions of "Assessment 2012 Easy"

From Progzoo
Jump to: navigation, search
(Naval Jack)
(Naval Jack)
Line 2: Line 2:
 
<shell lang="java" className="Flag" import="shells.xml#raster"/>
 
<shell lang="java" className="Flag" import="shells.xml#raster"/>
 
Each of these flags is worth 9 points.  
 
Each of these flags is worth 9 points.  
 +
==Sergipe==
 +
<question width="300" height="200" imgOut="flag.png" className="Raster" title="Naval Jack" cols="60">
 +
*300 by 200
 +
*Blue is RBG 8 41 140
 +
*Green is RGB 16 148 82
 +
*Yellow is RGB 255 239 8
 +
*The stars have radius 18 and 36
 +
[[Image:Flags of Brazil Sergipe.png|frame|Diversion]]
 +
<prog lang="java"><![CDATA[static void drawFlag(Graphics2D g){
 +
  g.setColor(new Color(8,41,140));
 +
  drawStar(g,100,100,36);
 +
}
 +
static void drawStar(Graphics2D g,int x, int y, int r)
 +
{
 +
  Polygon star = new Polygon(
 +
  new int[]{0,22,95,36,59,0,-59,-36,-95,-22},
 +
  new int[]{-100,-31,-31,12,81,38,81,12,-31,-31},10);
 +
  g.translate(x,y);
 +
  g.scale(r/100.0,r/100.0);
 +
  g.fillPolygon(star);
 +
  g.scale(100.0/r,100.0/r);
 +
  g.translate(-x,-y);
 +
}]]>
 +
</prog>
 +
</question>
 +
 
==Naval Jack==
 
==Naval Jack==
 
<question width="342" height="255" imgOut="flag.png" className="Raster" title="Naval Jack" cols="60">
 
<question width="342" height="255" imgOut="flag.png" className="Raster" title="Naval Jack" cols="60">

Revision as of 15:55, 30 August 2012

Each of these flags is worth 9 points.

Sergipe

  • 300 by 200
  • Blue is RBG 8 41 140
  • Green is RGB 16 148 82
  • Yellow is RGB 255 239 8
  • The stars have radius 18 and 36
Diversion


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

Naval Jack

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


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