Difference between revisions of "Assessment 2010 Easy"

From Progzoo
Jump to: navigation, search
(Udmurtia)
(Udmurtia)
Line 145: Line 145:
 
     p.addPoint(9,0);
 
     p.addPoint(9,0);
 
     p.addPoint(-9,0);
 
     p.addPoint(-9,0);
 +
  for (int i=0;i<4;i++){
 +
    g.fillPolygon(p);
 +
    g.rotate(Math.PI/2);
 +
  }
 +
}
 +
]]></prog>
 +
</question>
 +
 +
==Mordovia==
 +
<question className='Raster' imgOut='flag.png' width='200' height='100'>
 +
[[Image:flag_of_Mordovia.png|frame|Flag of Mordovia]]
 +
*The flag is 200 by 100
 +
*The red is 160,0,0
 +
*The blue is 0,0,128
 +
<prog><![CDATA[
 +
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(Color.red);
 +
  g.fillRect(0,76,200,24);
 +
  g.translate(100,50);
 +
  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++){
 
   for (int i=0;i<4;i++){
 
     g.fillPolygon(p);
 
     g.fillPolygon(p);

Revision as of 17:54, 19 September 2010

Flags of regions of Russia

Adygea

Flag of Adygea
  • The flag is 250 by 125
  • The green is 41,107,14
  • The yellow is 255,214,0
  • Radius of each star is 8
  • 9 stars on the circumference of a circle centre (125,105) radius 90
  • The 9 stars are take from a circle of 20 equally spaced stars
  • The arrows are at an angle of 40 degrees.


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

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


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