mirror of
https://github.com/bend-n/fimg.git
synced 2024-12-22 10:28:21 -06:00
8 lines
197 B
Rust
8 lines
197 B
Rust
use fimg::*;
|
|
fn tri() {
|
|
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]);
|
|
}
|
|
iai::main!(tri);
|