fimg/benches/drawing.rs
2023-10-04 07:50:20 +07:00

8 lines
223 B
Rust

use fimg::*;
fn tri() {
let mut b = [0u8; 1000 * 1000 * 4];
let mut i = Image::<&mut [u8], 4>::build(1000, 1000).buf(&mut b);
i.tri((0., 0.), (1000., 500.), (0., 999.), [255, 255, 255, 255]);
}
iai::main!(tri);