some fiddling with documentation. Added Poly type

This commit is contained in:
2020-02-21 19:29:24 -08:00
parent 99ed07e070
commit 9ddc88400e
12 changed files with 166 additions and 861 deletions

View File

@@ -26,7 +26,7 @@ pub fn load_raw(filename: String) -> (Vec<u8>, (u32,u32)) {
let mut image_buffer = Vec::new();
if pixel_count != data_length as usize {
println!("Creating apha channel...");
println!("Creating alpha channel for {}", filename);
for i in img.raw_pixels().iter() {
if (image_buffer.len() + 1) % 4 == 0 {
image_buffer.push(255);