Difference between revisions of "Animation"

From Progzoo
Jump to: navigation, search
(Moving block)
Line 34: Line 34:
 
<question copyFile="classes.jar" imgOut='anim.gif' width='150' height='100' className="Anim" classPath=".">
 
<question copyFile="classes.jar" imgOut='anim.gif' width='150' height='100' className="Anim" classPath=".">
 
<prog>
 
<prog>
static void drawFlag(Graphics g, int frame){
+
static void drawFrame(Graphics g, int frame){
 
   g.setColor(new Color(0,32*frame,0));
 
   g.setColor(new Color(0,32*frame,0));
 
   g.fillRect(0,0,150,100);
 
   g.fillRect(0,0,150,100);

Revision as of 19:46, 15 November 2008

Moving block


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