use realms::data::Color;
use realms::input::{Event, Key};
use realms::window::Window;
fn main() {
let mut window = Window::new(800, 600, "Hello Window!").expect("Failed to create window");
while window.is_running() {
window.new_frame(); window.fill(Color::rgb(20, 34, 40));
for event in window.events() {
match event {
Event::KeyDown(Key::Q) => window.close(), _ => {} }
}
}
}