From 9724ab947b9ba8b8089aa98d674604ca073fe2f3 Mon Sep 17 00:00:00 2001 From: itsmeow Date: Wed, 10 Jan 2024 01:11:46 -0600 Subject: [PATCH] Fix subtract blending --- src/iconforge.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iconforge.rs b/src/iconforge.rs index b477a487..ab866c72 100644 --- a/src/iconforge.rs +++ b/src/iconforge.rs @@ -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,