simple/simple.rs
1use arkham::prelude::*;
2
3fn main() {
4 App::new(root).run().expect("couldnt launch app");
5}
6
7fn root(ctx: &mut ViewContext) {
8 let size = ctx.size();
9 ctx.fill(size, Rune::new().bg(Color::DarkGrey));
10 ctx.insert((10, 10), "Hello World");
11 ctx.insert(
12 ((size.width / 2) - 7, 0),
13 "Press Q to Quit".to_runes().fg(Color::Red),
14 );
15}