Update
This commit is contained in:
@@ -76,29 +76,11 @@ public class Flocon extends Polygon {
|
||||
f.setSize(1200, 1200);
|
||||
|
||||
Flocon p = new Flocon();
|
||||
p.createFloc(f.getWidth() / 2, f.getHeight() / 2 - 100, 500, 4, 0);
|
||||
p.createFloc(f.getWidth() / 2, f.getHeight() / 2 - 100, 500, Integer.parseInt(args[0]), 0);
|
||||
|
||||
FloconPanel fp = new FloconPanel(p);
|
||||
|
||||
f.add(fp);
|
||||
|
||||
f.setVisible(true);
|
||||
|
||||
int a = 0;
|
||||
while(true) {
|
||||
try {
|
||||
Thread.sleep(16);
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
a += 1;
|
||||
|
||||
p.xpoints = new int[0];
|
||||
p.ypoints = new int[0];
|
||||
p.npoints = 0;
|
||||
p.createFloc(f.getWidth() / 2, f.getHeight() / 2 - 100, 500, 4, a);
|
||||
fp.repaint();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user