5 releases
0.1.4 | Feb 10, 2024 |
---|---|
0.1.3 | Dec 13, 2023 |
0.1.2 | Oct 28, 2023 |
0.1.1 | Oct 9, 2023 |
0.1.0 | Oct 9, 2023 |
#367 in Images
Used in 2 crates
10KB
196 lines
Minimg
This is a minimal library that enables output of RGBA png images. The colour type is a Vec4. Example
fn main() {
let mut buf = ImageBuffer::new(512, 512);
buf.set(69, 420, vec4(1.0, 0.0, 0.0, 1.0));
buf.dump_to_file("test.png");
}
Dependencies
~1.4–2MB
~43K SLoC