Difference between revisions of "Animation"

From Progzoo
Jump to: navigation, search
Line 37: Line 37:
 
<prog>
 
<prog>
 
static void drawFrame(Graphics g, int frame){
 
static void drawFrame(Graphics g, int frame){
  g.setColor(new Color(0,32*frame,0));
 
  g.fillRect(0,0,150,100);
 
 
   g.setColor(Color.yellow);
 
   g.setColor(Color.yellow);
 
   g.fillOval(22+2*frame,22,4+frame*2,4+frame*2);
 
   g.fillOval(22+2*frame,22,4+frame*2,4+frame*2);

Revision as of 17:38, 16 November 2008

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]