Beruflich Dokumente
Kultur Dokumente
*;
import java.applet.Applet;
Image image;
Graphics graphics;
int[] x1;
int[] y1;
int[] x2;
int[] y2;
x1 = new int[LINES];
y1 = new int[LINES];
x2 = new int[LINES];
y2 = new int[LINES];
x1[i] = x1[0];
y1[i] = y1[0];
x2[i] = x2[0];
y2[i] = y2[0];
}
image = createImage( WIDTH, HEIGHT );
graphics = image.getGraphics();
}
if ( runner == null ) {
runner = null;
}
repaint();
try {
Thread.sleep( 20 );
} catch ( InterruptedException e ) {
// do nothing
}
}
}
update( g );
}
graphics.setColor( Color.white );
graphics.fillRect( 0, 0, WIDTH, HEIGHT );
graphics.setColor( Color.red );
line = first;
first--;
x1[first] = x1[line];
y1[first] = y1[line];
x2[first] = x2[line];
y2[first] = y2[line];