Skip to main content

simple/
simple.rs

1use little_kitty::*;
2
3// PNG is natively supported and is thus the most efficient format
4const FILE: &str = "assets/media/linux.png";
5
6fn main() {
7    Command::default()
8        // quiet (suppress OK response)
9        .with_control('q', 1)
10        // action = transmit and place
11        .with_control('a', 'T')
12        // format = PNG
13        .with_control('f', 100)
14        // transmission medium = file
15        .with_control('t', 'f')
16        .execute_with_path_payload(FILE)
17        .expect("execute_with_path_payload");
18}