Skip to content

Commit

Permalink
Fix subtract blending in IconForge (3.1.3) (#14)
Browse files Browse the repository at this point in the history
* Fix subtract blending

* Version 3.1.3
  • Loading branch information
itsmeow committed Feb 26, 2024
1 parent 1e11fc7 commit 0ad0079
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "rust-g"
edition = "2021"
version = "3.1.2"
version = "3.1.3"
authors = [
"Bjorn Neergaard <[email protected]>",
"Tad Hardesty <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/iconforge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0ad0079

Please sign in to comment.