mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
c6eb7fd483
In particular, fix the combination of luminance and alpha. We want to do mask = luminance * alpha and for inverted mask = (1.0 - luminance) * alpha so add a test that makes sure we do that and then fix the code and existing tests to conform to it.
44 lines
723 B
Plaintext
44 lines
723 B
Plaintext
mask {
|
|
source: color {
|
|
bounds: 0 0 50 50;
|
|
color: rgb(255,0,0);
|
|
}
|
|
mask: color {
|
|
bounds: 0 0 50 50;
|
|
color: rgba(204,204,204,0.666667);
|
|
}
|
|
}
|
|
mask {
|
|
mode: luminance;
|
|
source: color {
|
|
bounds: 50 0 50 50;
|
|
color: rgb(255,0,0);
|
|
}
|
|
mask: color {
|
|
bounds: 50 0 50 50;
|
|
color: rgba(204,204,204,0.666667);
|
|
}
|
|
}
|
|
mask {
|
|
mode: inverted-alpha;
|
|
source: color {
|
|
bounds: 0 50 50 50;
|
|
color: rgb(255,0,0);
|
|
}
|
|
mask: color {
|
|
bounds: 0 50 50 50;
|
|
color: rgba(204,204,204,0.666667);
|
|
}
|
|
}
|
|
mask {
|
|
mode: inverted-luminance;
|
|
source: color {
|
|
bounds: 50 50 50 50;
|
|
color: rgb(255,0,0);
|
|
}
|
|
mask: color {
|
|
bounds: 50 50 50 50;
|
|
color: rgba(204,204,204,0.666667);
|
|
}
|
|
}
|