bubbles/bubbles.rs
1use terminal_graphics_interactive::prelude::*;
2
3fn main() -> std::io::Result<()> {
4 // Bubbles float up (gravity is negative). The mouse pulls them. Click to add one.
5 World::new()
6 .balls(14)
7 .size(1.6)
8 .gravity(-0.004)
9 .mouse_pulls()
10 .trails()
11 .palette(Palette::ocean())
12 .run()
13}