Add clip mode for blends

This matches the changes in the fix_blends PR.
This commit is contained in:
Chad Brokaw 2022-05-19 16:59:14 -04:00
parent 7f37355ba0
commit 938d6fc052

View file

@ -34,6 +34,8 @@ pub enum Mix {
Saturation = 13, Saturation = 13,
Color = 14, Color = 14,
Luminosity = 15, Luminosity = 15,
// Clip is the same as normal, but doesn't always push a blend group.
Clip = 128,
} }
/// Defines the layer composition function for a blend operation. /// Defines the layer composition function for a blend operation.
@ -76,7 +78,7 @@ impl Blend {
impl Default for Blend { impl Default for Blend {
fn default() -> Self { fn default() -> Self {
Self { Self {
mix: Mix::Normal, mix: Mix::Clip,
compose: Compose::SrcOver, compose: Compose::SrcOver,
} }
} }