Skip to content

Commit 0ad0079

Browse files
authored
Fix subtract blending in IconForge (3.1.3) (#14)
* Fix subtract blending * Version 3.1.3
1 parent 1e11fc7 commit 0ad0079

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rust-g"
33
edition = "2021"
4-
version = "3.1.2"
4+
version = "3.1.3"
55
authors = [
66
"Bjorn Neergaard <bjorn@neersighted.com>",
77
"Tad Hardesty <tad@platymuus.com>",

src/iconforge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ impl Rgba {
16341634
fn blend(&self, other_color: &Rgba, blend_mode: u8) -> Rgba {
16351635
match blend_mode {
16361636
0 => Rgba::map_each(self, other_color, |c1, c2| c1 + c2, f32::min),
1637-
1 => Rgba::map_each(self, other_color, |c1, c2| c2 - c1, f32::min),
1637+
1 => Rgba::map_each(self, other_color, |c1, c2| c1 - c2, f32::min),
16381638
2 => Rgba::map_each(
16391639
self,
16401640
other_color,

0 commit comments

Comments
 (0)