diff --git a/Cargo.lock b/Cargo.lock index e3a5c6c..4da6795 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2729,7 +2729,7 @@ dependencies = [ [[package]] name = "rust-g" -version = "3.1.2" +version = "3.1.3" dependencies = [ "aho-corasick", "base64", diff --git a/Cargo.toml b/Cargo.toml index da0a231..d88bdb2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rust-g" edition = "2021" -version = "3.1.2" +version = "3.1.3" authors = [ "Bjorn Neergaard ", "Tad Hardesty ", diff --git a/src/iconforge.rs b/src/iconforge.rs index 78e587b..1316ce4 100644 --- a/src/iconforge.rs +++ b/src/iconforge.rs @@ -1634,7 +1634,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,