fimg/benches/drawing.rs

8 lines
197 B
Rust
Raw Normal View History

2023-10-03 19:50:20 -05:00
use fimg::*;
fn tri() {
2023-10-03 22:19:52 -05:00
let mut i: Image<_, 4> = fimg::make!(4 channels 1000 x 1000);
i.as_mut()
.tri((0., 0.), (1000., 500.), (0., 999.), [255, 255, 255, 255]);
2023-10-03 19:50:20 -05:00
}
iai::main!(tri);