[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CSS3WN20Z31YNYCFDZ93P3":3,"skill-same:01M7CSS3WN20Z31YNYCFDZ93P3":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CSS3WN20Z31YNYCFDZ93P3","pixijs-filters",null,"Use this skill when applying visual effects to PixiJS v8 containers via the filter pipeline. Covers built-in filters (AlphaFilter, BlurFilter, ColorMatrixFilter, DisplacementFilter, NoiseFilter), custom Filter.from() with GLSL\u002FWGSL, options (resolution, padding, antialias, blendRequired), filterArea optimization, pixi-filters community package. Triggers on: filters, BlurFilter, ColorMatrixFilter, DisplacementFilter, NoiseFilter, Filter.from, GLSL filter, pixi-filters, filterArea.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fpixijs-pixijs-skills\u002Fpixijs-filters\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pixijs-filters\ndescription: \"Use this skill when applying visual effects to PixiJS v8 containers via the filter pipeline. Covers built-in filters (AlphaFilter, BlurFilter, ColorMatrixFilter, DisplacementFilter, NoiseFilter), custom Filter.from() with GLSL\u002FWGSL, options (resolution, padding, antialias, blendRequired), filterArea optimization, pixi-filters community package. Triggers on: filters, BlurFilter, ColorMatrixFilter, DisplacementFilter, NoiseFilter, Filter.from, GLSL filter, pixi-filters, filterArea.\"\nlicense: MIT\n---\n\nAttach visual effects by assigning one filter (or an array for chaining) to `container.filters`. Built-in filters cover blur, color matrix, displacement, alpha, and noise; custom filters wrap a GLSL\u002FWGSL fragment shader via `Filter.from(...)`.\n\n## Quick Start\n\n```ts\nconst sprite = new Sprite(await Assets.load(\"hero.png\"));\napp.stage.addChild(sprite);\n\nconst blur = new BlurFilter({ strength: 4, quality: 4 });\nconst colorMatrix = new ColorMatrixFilter();\ncolorMatrix.brightness(1.2, false);\n\nsprite.filters = [blur, colorMatrix];\n\nconst container = new Container();\ncontainer.filters = [new BlurFilter({ strength: 2 })];\ncontainer.filterArea = new Rectangle(0, 0, 800, 600);\napp.stage.addChild(container);\n```\n\n**Related skills:** `pixijs-custom-rendering` (shader internals, uniform types), `pixijs-blend-modes` (composing with filters), `pixijs-performance` (filter tuning, filterArea).\n\n## Core Patterns\n\n### Built-in filters\n\n```ts\nimport {\n  AlphaFilter,\n  BlurFilter,\n  ColorMatrixFilter,\n  DisplacementFilter,\n  NoiseFilter,\n  Assets,\n  Sprite,\n} from \"pixi.js\";\n\n\u002F\u002F Alpha (uniform transparency without per-child layering)\nconst alpha = new AlphaFilter({ alpha: 0.5 });\n\n\u002F\u002F Blur — strength\u002Fquality are uniform; strengthX\u002FstrengthY split axes;\n\u002F\u002F kernelSize must be odd (5, 7, 9, ... 15); repeatEdgePixels avoids transparent edges\nconst blur = new BlurFilter({\n  strength: 4,\n  quality: 4,\n  kernelSize: 5,\n  repeatEdgePixels: false,\n});\n\n\u002F\u002F Color matrix — brightness is one of many presets. Others: tint, hue,\n\u002F\u002F contrast, saturate, desaturate, greyscale\u002Fgrayscale, blackAndWhite,\n\u002F\u002F negative, sepia, technicolor, polaroid, kodachrome, browni, vintage,\n\u002F\u002F colorTone, night, predator, lsd, reset. Direct access via\n\u002F\u002F `colorMatrix.matrix` (20-element array) and `colorMatrix.alpha` (blend\n\u002F\u002F between original and transformed).\nconst colorMatrix = new ColorMatrixFilter();\ncolorMatrix.brightness(1.5, false);\ncolorMatrix.contrast(0.5, true); \u002F\u002F multiply stacks on top of existing matrix\ncolorMatrix.alpha = 0.7; \u002F\u002F blend at 70% strength\n\n\u002F\u002F Displacement — scale is a number or PointData\nconst displacementTexture = await Assets.load(\"displacement_map.png\");\nconst displacementSprite = new Sprite(displacementTexture);\nconst displacement = new DisplacementFilter({\n  sprite: displacementSprite,\n  scale: { x: 20, y: 10 },\n});\n\n\u002F\u002F Noise — seed is an arbitrary number that determines the noise pattern; same seed reproduces the same pattern\nconst noise = new NoiseFilter({ noise: 0.5, seed: Math.random() });\n\nsprite.filters = [blur, colorMatrix];\n```\n\n### Custom filter with Filter.from()\n\nThe simplest way to create a custom filter. Only a fragment shader is needed; PixiJS provides a default vertex shader.\n\n```ts\nimport { Filter } from \"pixi.js\";\n\nconst filter = Filter.from({\n  gl: {\n    fragment: `\n            in vec2 vTextureCoord;\n            out vec4 finalColor;\n            uniform sampler2D uTexture;\n            uniform float uTime;\n\n            void main() {\n                vec2 uv = vTextureCoord;\n                uv.x += sin(uv.y * 10.0 + uTime) * 0.02;\n                finalColor = texture(uTexture, uv);\n            }\n        `,\n  },\n  resources: {\n    timeUniforms: {\n      uTime: { value: 0, type: \"f32\" },\n    },\n  },\n});\n\nsprite.filters = filter;\n\napp.ticker.add((ticker) => {\n  filter.resources.timeUniforms.uniforms.uTime += 0.04 * ticker.deltaTime;\n});\n```\n\nFor more control, construct `GlProgram`\u002F`GpuProgram` objects directly:\n\n```ts\nimport { Filter, GlProgram } from \"pixi.js\";\n\nconst glProgram = GlProgram.from({ fragment: fragmentSrc, vertex: vertexSrc });\n\nconst filter = new Filter({\n  glProgram,\n  resources: {\n    timeUniforms: {\n      uTime: { value: 0, type: \"f32\" },\n    },\n  },\n});\n```\n\nKey points:\n\n- Use `out vec4 finalColor` in fragment shaders, not `gl_FragColor` (GLSL ES 3.0).\n- Use `texture()` to sample, not `texture2D`.\n- `glProgram` for WebGL, `gpuProgram` for WebGPU. Omitting one skips that renderer.\n- Textures go in `resources`, not uniforms. The filter system auto-provides `uTexture` (the input).\n- Access uniform values via `filter.resources.{groupName}.uniforms.{name}`.\n\n### Filter options\n\n```ts\nimport { Filter, GlProgram, Rectangle } from \"pixi.js\";\n\nconst filter = new Filter({\n  glProgram: GlProgram.from({ fragment }),\n  resources: {},\n  resolution: 0.5, \u002F\u002F default 1. Lower = faster, blurrier. 'inherit' matches the render target resolution\n  padding: 10, \u002F\u002F default 0. Extra pixels for effects that extend bounds\n  antialias: \"off\", \u002F\u002F default 'off'. 'on' | 'off' | 'inherit'\n  blendMode: \"normal\", \u002F\u002F default 'normal'\n  blendRequired: false, \u002F\u002F default false. true if shader samples uBackTexture\n  clipToViewport: true, \u002F\u002F default true\n});\n\n\u002F\u002F Optimization: set known bounds to avoid per-frame measurement\ncontainer.filterArea = new Rectangle(0, 0, 800, 600);\n\n\u002F\u002F Toggle without rebuilding the filter array\nfilter.enabled = false;\n\n\u002F\u002F Share one filter instance across many display objects\nsprite1.filters = [filter];\nsprite2.filters = [filter];\n```\n\n### Community filters (pixi-filters)\n\n```ts\nimport { AdjustmentFilter } from \"pixi-filters\u002Fadjustment\";\nimport { GlowFilter } from \"pixi-filters\u002Fglow\";\n\nsprite.filters = [\n  new AdjustmentFilter({ brightness: 1.2, contrast: 1.1 }),\n  new GlowFilter({ distance: 15, outerStrength: 2 }),\n];\n```\n\nFor v8, community filters use `pixi-filters\u002F{name}` imports, not the old `@pixi\u002Ffilter-*` packages.\n\n### Advanced blend modes\n\nAdvanced blend modes (`color-burn`, `overlay`, `hard-light`, etc.) are powered by the filter system and must be imported before use. They also require `useBackBuffer: true` on WebGL; see the `pixijs-blend-modes` skill for the full list.\n\n```ts\nimport \"pixi.js\u002Fadvanced-blend-modes\";\n\nawait app.init({ useBackBuffer: true });\nsprite.blendMode = \"color-burn\";\n```\n\nAdvanced blend modes are filter-based, so they inherit `Filter.defaultOptions`, whose `resolution` defaults to `1`. On high-DPI render targets this can make a blend mode look clipped, scaled, or only partially applied. Set `Filter.defaultOptions.resolution = 'inherit'` before creating the affected objects to render at the render target resolution, at higher memory and runtime cost:\n\n```ts\nimport { Filter } from \"pixi.js\";\nimport \"pixi.js\u002Fadvanced-blend-modes\";\n\nFilter.defaultOptions.resolution = \"inherit\";\nsprite.blendMode = \"overlay\";\n```\n\n## Common Mistakes\n\n### [CRITICAL] Using old Filter constructor (vertex, fragment, uniforms)\n\nWrong:\n\n```ts\nimport { Filter } from \"pixi.js\";\n\nconst filter = new Filter(vertex, fragment, { uTime: 0 });\n```\n\nCorrect:\n\n```ts\nimport { Filter, GlProgram } from \"pixi.js\";\n\nconst filter = new Filter({\n  glProgram: GlProgram.from({ fragment, vertex }),\n  resources: {\n    timeUniforms: { uTime: { value: 0, type: \"f32\" } },\n  },\n});\n```\n\nv8 uses an options object. Shaders must be wrapped in `GlProgram.from()` or `GpuProgram.from()`. Uniforms are grouped in `resources` with explicit types. Textures are resources, not uniforms.\n\n\n### [HIGH] Using @pixi\u002Ffilter-\\* packages for v8\n\nWrong:\n\n```ts\nimport { AdjustmentFilter } from \"@pixi\u002Ffilter-adjustment\";\n```\n\nCorrect:\n\n```ts\nimport { AdjustmentFilter } from \"pixi-filters\u002Fadjustment\";\n```\n\n`@pixi\u002Ffilter-*` packages are v7 only. For v8, the community filters package restructured to `pixi-filters\u002F{name}`.\n\n\n### [HIGH] Using too many filters without containerizing\n\nEach filter application requires a framebuffer switch, bounds measurement, and render-to-texture pass. One filter on a parent container is much cheaper than the same filter on each child.\n\nWrong:\n\n```ts\nfor (const child of container.children) {\n  child.filters = [new BlurFilter({ strength: 4 })];\n}\n```\n\nCorrect:\n\n```ts\ncontainer.filters = [new BlurFilter({ strength: 4 })];\n```\n\n\n### [HIGH] Using a blendRequired filter without useBackBuffer on WebGL\n\nCustom filters and most advanced community filters that set `blendRequired: true` sample the back buffer. On WebGL that only works if the renderer was initialized with `useBackBuffer: true`; otherwise PixiJS logs a warning and the filter silently falls back:\n\n```ts\nawait app.init({ useBackBuffer: true });\n```\n\nWebGPU enables the back buffer unconditionally, so this only affects WebGL.\n\n\n### [MEDIUM] Not setting filterArea for known-size containers\n\nWithout `filterArea`, PixiJS measures the container bounds every frame via `getGlobalBounds()`, which recursively walks all children. For containers with known dimensions, set `filterArea` to avoid this cost:\n\n```ts\nimport { Rectangle } from \"pixi.js\";\n\ncontainer.filterArea = new Rectangle(0, 0, 800, 600);\ncontainer.filters = [someFilter];\n```\n\n\n## API Reference\n\n- [Filter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.Filter.html.md)\n- [AlphaFilter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.AlphaFilter.html.md)\n- [BlurFilter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.BlurFilter.html.md)\n- [BlurFilterPass](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.BlurFilterPass.html.md)\n- [ColorMatrixFilter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.ColorMatrixFilter.html.md)\n- [DisplacementFilter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.DisplacementFilter.html.md)\n- [NoiseFilter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.NoiseFilter.html.md)\n- [FilterSystem](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Frendering.FilterSystem.html.md)\n","Attach visual effects by assigning one filter (or an array for chaining) to `container.filters`. Built-in filters cover blur, color matrix, displacement, alpha, and noise; custom filters wrap a GLSL\u002FWGSL fragment shader via `Filter.from(...)`.\n\n## Quick Start\n\n```ts\nconst sprite = new Sprite(await Assets.load(\"hero.png\"));\napp.stage.addChild(sprite);\n\nconst blur = new BlurFilter({ strength: 4, quality: 4 });\nconst colorMatrix = new ColorMatrixFilter();\ncolorMatrix.brightness(1.2, false);\n\nsprite.filters = [blur, colorMatrix];\n\nconst container = new Container();\ncontainer.filters = [new BlurFilter({ strength: 2 })];\ncontainer.filterArea = new Rectangle(0, 0, 800, 600);\napp.stage.addChild(container);\n```\n\n**Related skills:** `pixijs-custom-rendering` (shader internals, uniform types), `pixijs-blend-modes` (composing with filters), `pixijs-performance` (filter tuning, filterArea).\n\n## Core Patterns\n\n### Built-in filters\n\n```ts\nimport {\n  AlphaFilter,\n  BlurFilter,\n  ColorMatrixFilter,\n  DisplacementFilter,\n  NoiseFilter,\n  Assets,\n  Sprite,\n} from \"pixi.js\";\n\n\u002F\u002F Alpha (uniform transparency without per-child layering)\nconst alpha = new AlphaFilter({ alpha: 0.5 });\n\n\u002F\u002F Blur — strength\u002Fquality are uniform; strengthX\u002FstrengthY split axes;\n\u002F\u002F kernelSize must be odd (5, 7, 9, ... 15); repeatEdgePixels avoids transparent edges\nconst blur = new BlurFilter({\n  strength: 4,\n  quality: 4,\n  kernelSize: 5,\n  repeatEdgePixels: false,\n});\n\n\u002F\u002F Color matrix — brightness is one of many presets. Others: tint, hue,\n\u002F\u002F contrast, saturate, desaturate, greyscale\u002Fgrayscale, blackAndWhite,\n\u002F\u002F negative, sepia, technicolor, polaroid, kodachrome, browni, vintage,\n\u002F\u002F colorTone, night, predator, lsd, reset. Direct access via\n\u002F\u002F `colorMatrix.matrix` (20-element array) and `colorMatrix.alpha` (blend\n\u002F\u002F between original and transformed).\nconst colorMatrix = new ColorMatrixFilter();\ncolorMatrix.brightness(1.5, false);\ncolorMatrix.contrast(0.5, true); \u002F\u002F multiply stacks on top of existing matrix\ncolorMatrix.alpha = 0.7; \u002F\u002F blend at 70% strength\n\n\u002F\u002F Displacement — scale is a number or PointData\nconst displacementTexture = await Assets.load(\"displacement_map.png\");\nconst displacementSprite = new Sprite(displacementTexture);\nconst displacement = new DisplacementFilter({\n  sprite: displacementSprite,\n  scale: { x: 20, y: 10 },\n});\n\n\u002F\u002F Noise — seed is an arbitrary number that determines the noise pattern; same seed reproduces the same pattern\nconst noise = new NoiseFilter({ noise: 0.5, seed: Math.random() });\n\nsprite.filters = [blur, colorMatrix];\n```\n\n### Custom filter with Filter.from()\n\nThe simplest way to create a custom filter. Only a fragment shader is needed; PixiJS provides a default vertex shader.\n\n```ts\nimport { Filter } from \"pixi.js\";\n\nconst filter = Filter.from({\n  gl: {\n    fragment: `\n            in vec2 vTextureCoord;\n            out vec4 finalColor;\n            uniform sampler2D uTexture;\n            uniform float uTime;\n\n            void main() {\n                vec2 uv = vTextureCoord;\n                uv.x += sin(uv.y * 10.0 + uTime) * 0.02;\n                finalColor = texture(uTexture, uv);\n            }\n        `,\n  },\n  resources: {\n    timeUniforms: {\n      uTime: { value: 0, type: \"f32\" },\n    },\n  },\n});\n\nsprite.filters = filter;\n\napp.ticker.add((ticker) => {\n  filter.resources.timeUniforms.uniforms.uTime += 0.04 * ticker.deltaTime;\n});\n```\n\nFor more control, construct `GlProgram`\u002F`GpuProgram` objects directly:\n\n```ts\nimport { Filter, GlProgram } from \"pixi.js\";\n\nconst glProgram = GlProgram.from({ fragment: fragmentSrc, vertex: vertexSrc });\n\nconst filter = new Filter({\n  glProgram,\n  resources: {\n    timeUniforms: {\n      uTime: { value: 0, type: \"f32\" },\n    },\n  },\n});\n```\n\nKey points:\n\n- Use `out vec4 finalColor` in fragment shaders, not `gl_FragColor` (GLSL ES 3.0).\n- Use `texture()` to sample, not `texture2D`.\n- `glProgram` for WebGL, `gpuProgram` for WebGPU. Omitting one skips that renderer.\n- Textures go in `resources`, not uniforms. The filter system auto-provides `uTexture` (the input).\n- Access uniform values via `filter.resources.{groupName}.uniforms.{name}`.\n\n### Filter options\n\n```ts\nimport { Filter, GlProgram, Rectangle } from \"pixi.js\";\n\nconst filter = new Filter({\n  glProgram: GlProgram.from({ fragment }),\n  resources: {},\n  resolution: 0.5, \u002F\u002F default 1. Lower = faster, blurrier. 'inherit' matches the render target resolution\n  padding: 10, \u002F\u002F default 0. Extra pixels for effects that extend bounds\n  antialias: \"off\", \u002F\u002F default 'off'. 'on' | 'off' | 'inherit'\n  blendMode: \"normal\", \u002F\u002F default 'normal'\n  blendRequired: false, \u002F\u002F default false. true if shader samples uBackTexture\n  clipToViewport: true, \u002F\u002F default true\n});\n\n\u002F\u002F Optimization: set known bounds to avoid per-frame measurement\ncontainer.filterArea = new Rectangle(0, 0, 800, 600);\n\n\u002F\u002F Toggle without rebuilding the filter array\nfilter.enabled = false;\n\n\u002F\u002F Share one filter instance across many display objects\nsprite1.filters = [filter];\nsprite2.filters = [filter];\n```\n\n### Community filters (pixi-filters)\n\n```ts\nimport { AdjustmentFilter } from \"pixi-filters\u002Fadjustment\";\nimport { GlowFilter } from \"pixi-filters\u002Fglow\";\n\nsprite.filters = [\n  new AdjustmentFilter({ brightness: 1.2, contrast: 1.1 }),\n  new GlowFilter({ distance: 15, outerStrength: 2 }),\n];\n```\n\nFor v8, community filters use `pixi-filters\u002F{name}` imports, not the old `@pixi\u002Ffilter-*` packages.\n\n### Advanced blend modes\n\nAdvanced blend modes (`color-burn`, `overlay`, `hard-light`, etc.) are powered by the filter system and must be imported before use. They also require `useBackBuffer: true` on WebGL; see the `pixijs-blend-modes` skill for the full list.\n\n```ts\nimport \"pixi.js\u002Fadvanced-blend-modes\";\n\nawait app.init({ useBackBuffer: true });\nsprite.blendMode = \"color-burn\";\n```\n\nAdvanced blend modes are filter-based, so they inherit `Filter.defaultOptions`, whose `resolution` defaults to `1`. On high-DPI render targets this can make a blend mode look clipped, scaled, or only partially applied. Set `Filter.defaultOptions.resolution = 'inherit'` before creating the affected objects to render at the render target resolution, at higher memory and runtime cost:\n\n```ts\nimport { Filter } from \"pixi.js\";\nimport \"pixi.js\u002Fadvanced-blend-modes\";\n\nFilter.defaultOptions.resolution = \"inherit\";\nsprite.blendMode = \"overlay\";\n```\n\n## Common Mistakes\n\n### [CRITICAL] Using old Filter constructor (vertex, fragment, uniforms)\n\nWrong:\n\n```ts\nimport { Filter } from \"pixi.js\";\n\nconst filter = new Filter(vertex, fragment, { uTime: 0 });\n```\n\nCorrect:\n\n```ts\nimport { Filter, GlProgram } from \"pixi.js\";\n\nconst filter = new Filter({\n  glProgram: GlProgram.from({ fragment, vertex }),\n  resources: {\n    timeUniforms: { uTime: { value: 0, type: \"f32\" } },\n  },\n});\n```\n\nv8 uses an options object. Shaders must be wrapped in `GlProgram.from()` or `GpuProgram.from()`. Uniforms are grouped in `resources` with explicit types. Textures are resources, not uniforms.\n\n\n### [HIGH] Using @pixi\u002Ffilter-\\* packages for v8\n\nWrong:\n\n```ts\nimport { AdjustmentFilter } from \"@pixi\u002Ffilter-adjustment\";\n```\n\nCorrect:\n\n```ts\nimport { AdjustmentFilter } from \"pixi-filters\u002Fadjustment\";\n```\n\n`@pixi\u002Ffilter-*` packages are v7 only. For v8, the community filters package restructured to `pixi-filters\u002F{name}`.\n\n\n### [HIGH] Using too many filters without containerizing\n\nEach filter application requires a framebuffer switch, bounds measurement, and render-to-texture pass. One filter on a parent container is much cheaper than the same filter on each child.\n\nWrong:\n\n```ts\nfor (const child of container.children) {\n  child.filters = [new BlurFilter({ strength: 4 })];\n}\n```\n\nCorrect:\n\n```ts\ncontainer.filters = [new BlurFilter({ strength: 4 })];\n```\n\n\n### [HIGH] Using a blendRequired filter without useBackBuffer on WebGL\n\nCustom filters and most advanced community filters that set `blendRequired: true` sample the back buffer. On WebGL that only works if the renderer was initialized with `useBackBuffer: true`; otherwise PixiJS logs a warning and the filter silently falls back:\n\n```ts\nawait app.init({ useBackBuffer: true });\n```\n\nWebGPU enables the back buffer unconditionally, so this only affects WebGL.\n\n\n### [MEDIUM] Not setting filterArea for known-size containers\n\nWithout `filterArea`, PixiJS measures the container bounds every frame via `getGlobalBounds()`, which recursively walks all children. For containers with known dimensions, set `filterArea` to avoid this cost:\n\n```ts\nimport { Rectangle } from \"pixi.js\";\n\ncontainer.filterArea = new Rectangle(0, 0, 800, 600);\ncontainer.filters = [someFilter];\n```\n\n\n## API Reference\n\n- [Filter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.Filter.html.md)\n- [AlphaFilter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.AlphaFilter.html.md)\n- [BlurFilter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.BlurFilter.html.md)\n- [BlurFilterPass](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.BlurFilterPass.html.md)\n- [ColorMatrixFilter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.ColorMatrixFilter.html.md)\n- [DisplacementFilter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.DisplacementFilter.html.md)\n- [NoiseFilter](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Ffilters.NoiseFilter.html.md)\n- [FilterSystem](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Frendering.FilterSystem.html.md)\n",{"name":5,"license":15,"description":7},"main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fpixijs-pixijs-skills\u002Fpixijs-filters",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill pixijs-filters",{"tool":38,"command":39},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill pixijs-filters",{"tool":41,"command":42},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill pixijs-filters","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fpixijs-pixijs-skills\u002Fpixijs-filters\u002FSkill.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"metadata.json","REFERENCE","参考文档",441,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fpixijs-pixijs-skills\u002Fpixijs-filters\u002Fmetadata.json",[53,60,65,72,77,84],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":61,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":73,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":85,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]