Skip to main content

balls/
balls.rs

1use terminal_graphics_interactive::prelude::*;
2
3fn main() -> std::io::Result<()> {
4    // The mouse pulls the balls in, the right button pushes them away, a click
5    // adds a ball. Press q to quit.
6    World::new()
7        .balls(5)
8        .size(3.5)
9        .gravity(0.02)
10        .mouse_pulls()
11        .trails()
12        .run()
13}