Skip to content

Commit

Permalink
Update monochrome.rs to fix assignment of blue value
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsella authored Jun 16, 2024
1 parent 56b7d38 commit 4bcee23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crate/src/monochrome.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn monochrome(img: &mut PhotonImage, r_offset: u32, g_offset: u32, b_offset:

img.raw_pixels[i] = new_r;
img.raw_pixels[i + 1] = new_g;
img.raw_pixels[i + 1] = new_b;
img.raw_pixels[i + 2] = new_b;
}
}

Expand Down

0 comments on commit 4bcee23

Please sign in to comment.