Difference between revisions of "Assessment 2010 Easy"

From Progzoo
Jump to: navigation, search
Line 36: Line 36:
 
   g.setColor(Color.green);
 
   g.setColor(Color.green);
 
   g.fillRect(0,0,200,68);
 
   g.fillRect(0,0,200,68);
  g.setColor(Color.red);
 
  g.fillRect(0,68,200,68);
 
  g.setColor(Color.yellow);
 
  g.fillPolygon(new Polygon(new int[]{0,100,0},new int[]{0,68,136},3));
 
 
}
 
}
 
]]></prog>
 
]]></prog>
Line 53: Line 49:
 
<prog><![CDATA[
 
<prog><![CDATA[
 
static void drawFlag(Graphics2D g){
 
static void drawFlag(Graphics2D g){
  g.setColor(Color.blue);
 
  g.fillRect(0,0,200,67);
 
  g.setColor(Color.white);
 
  g.fillRect(0,68,200,10);
 
  g.fillOval(100-20,34-20,40,40);
 
  g.setColor(Color.red);
 
  g.fillRect(0,78,200,10);
 
  g.setColor(Color.green);
 
  g.fillRect(0,88,200,13);
 
 
}
 
}
 
]]></prog>
 
]]></prog>
Line 75: Line 62:
 
<prog><![CDATA[
 
<prog><![CDATA[
 
static void drawFlag(Graphics2D g){
 
static void drawFlag(Graphics2D g){
  g.setColor(Color.black);
 
  g.fillRect(0,0,66,100);
 
  g.setColor(Color.white);
 
  g.fillRect(66,0,66,100);
 
  g.setColor(Color.red);
 
  g.fillRect(132,0,66,100);
 
  g.translate(99,50);
 
  Polygon p = new Polygon();
 
    p.addPoint(-9,28);
 
    p.addPoint(0,19);
 
    p.addPoint(9,28);
 
    p.addPoint(9,0);
 
    p.addPoint(-9,0);
 
  for (int i=0;i<4;i++){
 
    g.fillPolygon(p);
 
    g.rotate(Math.PI/2);
 
  }
 
 
}
 
}
 
]]></prog>
 
]]></prog>
Line 107: Line 77:
 
<prog><![CDATA[
 
<prog><![CDATA[
 
static void drawFlag(Graphics2D g){
 
static void drawFlag(Graphics2D g){
  g.setColor(new Color(160,0,0));
 
  g.fillRect(0,0,200,24);
 
  g.setColor(Color.white);
 
  g.fillRect(0,24,200,54);
 
  g.setColor(new Color(0,0,128));
 
  g.fillRect(0,76,200,24);
 
  g.translate(100,50);
 
  g.setColor(new Color(160,0,0));
 
  Polygon p = new Polygon();
 
    p.addPoint(4,0);
 
    p.addPoint(11,7);
 
    p.addPoint(21,7);
 
    p.addPoint(14,0);
 
    p.addPoint(21,-7);
 
    p.addPoint(11,-7);
 
  for (int i=0;i<4;i++){
 
    g.fillPolygon(p);
 
    g.rotate(Math.PI/2);
 
  }
 
 
}
 
}
 
]]></prog>
 
]]></prog>
Line 139: Line 90:
 
<prog><![CDATA[
 
<prog><![CDATA[
 
static void drawFlag(Graphics2D g){
 
static void drawFlag(Graphics2D g){
  Color green = new Color(4,164,84);
 
  g.setColor(green);
 
  g.fillRect(0,0,200,67);
 
  g.setColor(Color.white);
 
  g.fillRect(0,66,200,67);
 
  Polygon p = new Polygon();
 
    p.addPoint(23,44);
 
    p.addPoint(23+44,44);
 
    p.addPoint(23+22,44-22);
 
  g.translate(22,0);
 
  g.fillPolygon(p);
 
  g.setColor(green);
 
  g.drawPolygon(p);
 
  g.translate(-22,0);
 
  g.fillPolygon(p);
 
  g.setColor(green);
 
  g.drawPolygon(p);
 
 
}
 
}
 
]]></prog>
 
]]></prog>
 
</question>
 
</question>
 
{{Assessment 2010}}
 
{{Assessment 2010}}

Revision as of 01:01, 20 September 2010

Flags of regions of Russia


Chita

Flag of Chita
  • The flag is 200 by 136


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

Shakha

Flag of Shakha
  • The flag is 200 by 100
  • The stripe blue is 68 high
  • The white stripe is 10 high
  • The red stripe is 10 high
  • The circle has radius 20


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


Udmurtia

Flag of Udmurtia
  • The flag is 198 by 100
  • The width of the cross is 56
  • The width of the arm of a cross is 18


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

Mordovia

Flag of Mordovia
  • The flag is 200 by 100
  • The red is 160,0,0
  • The blue is 0,0,128
  • Each chevron is 4 from the centre
  • Each chevron has width 14
  • Each chevron has longest side 10


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

Kurgan

Flag of Kurgan
  • The flag is 200 by 134
  • The green is 4,164,84
  • The leftmost point of the mountain is at 23,44
  • The base of one mountain is 44


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