Difference between revisions of "Animation"

From Progzoo
Jump to: navigation, search
(Moving block)
Line 14: Line 14:
 
     try {
 
     try {
 
         Gif89Encoder genc = new Gif89Encoder();
 
         Gif89Encoder genc = new Gif89Encoder();
         for (int i=0;i<QframesQ;i++){
+
         for (int i=0;i<20;i++){
 
           BufferedImage image = new BufferedImage(QwidthQ,QheightQ, BufferedImage.TYPE_INT_ARGB);
 
           BufferedImage image = new BufferedImage(QwidthQ,QheightQ, BufferedImage.TYPE_INT_ARGB);
 
           Graphics2D g = image.createGraphics();
 
           Graphics2D g = image.createGraphics();
Line 33: Line 33:
 
==Moving block==
 
==Moving block==
 
<question copyFile="classes.jar" imgOut='anim.gif'
 
<question copyFile="classes.jar" imgOut='anim.gif'
  frames='20' width='150' height='100' className="Anim"
+
  width='150' height='100' className="Anim"
 
  classpath="classes.jar">
 
  classpath="classes.jar">
 
<prog>
 
<prog>
Line 49: Line 49:
 
==Shooting Star==
 
==Shooting Star==
 
<question copyFile="classes.jar" imgOut='anim.gif'
 
<question copyFile="classes.jar" imgOut='anim.gif'
  frames='10' width='150' height='100' className="Anim"
+
  width='150' height='100' className="Anim"
 
  classpath="classes.jar">
 
  classpath="classes.jar">
 
<prog>
 
<prog>

Revision as of 20:30, 2 September 2012

The animations here rely on Gif89Encoder available from http://jmge.net/java/gifenc/ developed by JMG Elliot.

Moving block


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

Shooting Star


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