Difference between revisions of "Animation"

From Progzoo
Jump to: navigation, search
(Moving block)
(Moving block)
Line 37: Line 37:
 
<prog>
 
<prog>
 
static void drawFrame(Graphics2D g, int frame){
 
static void drawFrame(Graphics2D g, int frame){
   g.setColor(Color.red);
+
   g.setColor(Color.green);
 
   g.fillRect(0,0,150,100);
 
   g.fillRect(0,0,150,100);
 
   g.setColor(Color.yellow);
 
   g.setColor(Color.yellow);

Revision as of 09:59, 19 October 2009

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]