mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 12:41:30 +11:00
Add clip mode for blends
This matches the changes in the fix_blends PR.
This commit is contained in:
parent
7f37355ba0
commit
938d6fc052
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue