Skip to content

Commit

Permalink
Fix subtract blending
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Jan 10, 2024
1 parent 5d7a25e commit 9724ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iconforge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ impl Rgba {
fn blend(&self, other_color: &Rgba, blend_mode: u8) -> Rgba {
match blend_mode {
0 => Rgba::map_each(self, other_color, |c1, c2| c1 + c2, f32::min),
1 => Rgba::map_each(self, other_color, |c1, c2| c2 - c1, f32::min),
1 => Rgba::map_each(self, other_color, |c1, c2| c1 - c2, f32::min),
2 => Rgba::map_each(
self,
other_color,
Expand Down

0 comments on commit 9724ab9

Please sign in to comment.