Difference between revisions of "Animation"

From Progzoo
Jump to: navigation, search
(New page: <shell> import java.awt.image.BufferedImage; import java.awt.*; import java.io.File; import javax.imageio.ImageIO; public class Raster{ QcQ public static void main(String argv []){ ...)
 
Line 24: Line 24:
 
}
 
}
 
</shell>
 
</shell>
 
+
==Moving block==
<question>
+
<question imgOut='flag.png' width='150' height='100' className="Raster">
 
<prog>
 
<prog>
 
static void drawFrame(Graphics g,int i){
 
static void drawFrame(Graphics g,int i){
   g.setColor(new Color(0,128,0));
+
   g.setColor(Color.black);
 
   g.fillRect(20*i,20*i,50,50);
 
   g.fillRect(20*i,20*i,50,50);
 
}
 
}
 
</prog>
 
</prog>
 
</question>
 
</question>

Revision as of 19:25, 4 November 2008

Moving block


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