ruscii 0.2.0

Terminal graphics engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use ruscii::terminal::{Window, Color, VisualElement};

fn main() {
    let mut window = Window::new();
    window.open();
    println!("This is an open window");
    std::thread::sleep(std::time::Duration::from_secs(2));

    let mut default = VisualElement::new();
    default.background = Color::Red;
    window.canvas_mut().set_default_element(&default);
    window.clear();
    window.draw();
    println!("With a custom background color!");

    std::thread::sleep(std::time::Duration::from_secs(2));
    window.close();
}