fimg/benches/drawing.rs
2023-10-04 11:34:14 +07:00

8 lines
216 B
Rust

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::main!(tri);