fast image operations
Diffstat (limited to 'benches/drawing.rs')
-rw-r--r--benches/drawing.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/benches/drawing.rs b/benches/drawing.rs
index 8375bf3..61bf4d9 100644
--- a/benches/drawing.rs
+++ b/benches/drawing.rs
@@ -2,6 +2,12 @@ use fimg::*;
fn tri() {
let mut i: Image<_, 4> = fimg::make!(4 channels 1000 x 1000).boxed();
i.tri((0., 0.), (1000., 500.), (0., 999.), [255, 255, 255, 255]);
- std::hint::black_box(i);
+ iai::black_box(i);
}
-iai::main!(tri);
+fn line() {
+ let mut i: Image<_, 4> = fimg::make!(4 channels 500 x 750).boxed();
+ i.line((-50, 20), (550, 800), [255, 165, 0, 255]);
+ i.save("z.png");
+ iai::black_box(i);
+}
+iai::main!(tri, line);