lyb-pixi-js 1.11.26 → 1.11.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Utils/LibPixiFilter.js +4 -0
- package/lyb-pixi.js +3 -0
- package/package.json +1 -1
package/Utils/LibPixiFilter.js
CHANGED
|
@@ -22,6 +22,10 @@ export const libPixiFilter = (filterName, v) => {
|
|
|
22
22
|
filter = new ColorMatrixFilter();
|
|
23
23
|
filter.contrast(v, false);
|
|
24
24
|
}
|
|
25
|
+
else if (filterName === "saturate") {
|
|
26
|
+
filter = new ColorMatrixFilter();
|
|
27
|
+
filter.saturate(v, false);
|
|
28
|
+
}
|
|
25
29
|
else {
|
|
26
30
|
throw new Error("未知滤镜名称");
|
|
27
31
|
}
|
package/lyb-pixi.js
CHANGED
|
@@ -54556,6 +54556,9 @@ void main(void)\r
|
|
|
54556
54556
|
} else if (filterName === "contrast") {
|
|
54557
54557
|
filter = new ColorMatrixFilter();
|
|
54558
54558
|
filter.contrast(v2, false);
|
|
54559
|
+
} else if (filterName === "saturate") {
|
|
54560
|
+
filter = new ColorMatrixFilter();
|
|
54561
|
+
filter.saturate(v2, false);
|
|
54559
54562
|
} else {
|
|
54560
54563
|
throw new Error("未知滤镜名称");
|
|
54561
54564
|
}
|