Crates.io | minimg |
lib.rs | minimg |
version | 0.1.4 |
source | src |
created_at | 2023-10-09 21:32:15.276599 |
updated_at | 2024-02-10 03:44:24.924678 |
description | A mini image library |
homepage | |
repository | https://github.com/ThePJB/minimg |
max_upload_size | |
id | 998539 |
size | 9,489 |
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");
}