Difference between revisions of "Assessment 2012 Easy"

From Progzoo
Jump to: navigation, search
(Sergipe)
(Naval Jack)
Line 29: Line 29:
 
</question>
 
</question>
  
 +
==Amazonas==
 +
<question width="342" height="255" imgOut="flag.png" className="Raster" title="Naval Jack" cols="60">
 +
*366 by 255
 +
*Red RBG 222 16 24
 +
*Blue RBG 8,41,140 (152 by 122)
 +
*The stars have radius 12 and 6
 +
[[Image:Flags of Brazil Amazonas.png|frame|Amazonas]]
 +
<prog lang="java"><![CDATA[static void drawFlag(Graphics2D g){
 +
  g.setColor(new Color(8,41,140));
 +
  drawStar(g,170,127,12);
 +
}
 +
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">
Line 34: Line 58:
 
*The blue RBG 0,41,140
 
*The blue RBG 0,41,140
 
*The stars have radius 7
 
*The stars have radius 7
[[Image:Flags of Brazil Naval Jack.png|frame|Diversion]]
+
[[Image:Flags of Brazil Naval Jack.png|frame|Naval Jack]]
 
<prog lang="java"><![CDATA[static void drawFlag(Graphics2D g){
 
<prog lang="java"><![CDATA[static void drawFlag(Graphics2D g){
 
   g.setColor(new Color(0,41,140));
 
   g.setColor(new Color(0,41,140));

Revision as of 16:10, 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 26 and 13
  • The centre of the small star is 20 from the edge
Sergipe


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

Amazonas

  • 366 by 255
  • Red RBG 222 16 24
  • Blue RBG 8,41,140 (152 by 122)
  • The stars have radius 12 and 6
Amazonas


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

Naval Jack

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


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