Chaos game: Difference between revisions

(Updates for modern Rust and some readability improvements)
Line 1,149:
 
public class ChaosGame extends JPanel {
static class ColoredPoint extends Point {
int colorIndex;
 
Line 1,193:
stack.add(halfwayPoint(p1, p2, colorIndex));
} catch (EmptyStackException e) {
Systeme.out.printlnprintStackTrace(e);
}
}