gtk/testsuite/gsk/compare/mask-modes-with-alpha.node
Benjamin Otte c6eb7fd483 gsk: Fix luminance in Cairo and GL renderer
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.
2023-07-03 22:02:44 +02:00

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);
}
}