Difference between revisions of "Assessment 2012 Easy"

From Progzoo
Jump to: navigation, search
(Naval Jack)
(Naval Jack)
Line 8: Line 8:
 
*The stars have radius 6
 
*The stars have radius 6
 
[[Image:roaddiversionsquare.png|frame|Diversion]]
 
[[Image:roaddiversionsquare.png|frame|Diversion]]
<prog lang="java">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));
 
   for (int i=0;i<7;i++)
 
   for (int i=0;i<7;i++)
Line 23: Line 23:
 
   g.scale(100.0/r,100.0/r);
 
   g.scale(100.0/r,100.0/r);
 
   g.translate(-x,-y);
 
   g.translate(-x,-y);
}
+
}]]>
 
</prog>
 
</prog>
 
</question>
 
</question>

Revision as of 13:39, 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]