summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 06346a2..28fe0c9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,14 +1,23 @@
mod context;
+mod picture;
+mod piece;
+
use context::Context;
+use picture::Picture;
+use piece::Piece;
fn main() {
println!("Hello, world!");
let ctx = Context::new_with_args().unwrap();
- println!("{:?}", ctx);
-
for file in ctx.get_image_files().unwrap() {
println!("{}", file.display());
+
+ let pic = Picture::new_from_file(&file).unwrap();
+ println!("{:?}", pic);
+
+ let piece = Piece::new(&ctx, pic).unwrap();
+ println!("{:?}", piece);
}
}