Frontory

Open code, practice, and notes →

Download source with English comments · for reading

PixiJS · 19 Filters and Their Scope

Series contents · Technology map

Stage: Accessibility, Scene Composition, and Effects · Editable example · Storage ID: pixijs-step-19

Goals and learning outcomes

Prerequisites

Prerequisite concepts: Restricting Display, Input Policy. Prepare the output files and observation records from Unit 18.

Key concepts and explanations

Filter Passes

Filters such as blur may require intermediate rendering work. Processing area and quality settings affect cost as well as object count.

Group Effects

A filter on a parent acts on the combined result. Edges and overlaps can differ from applying a filter to each child.

Practice setup

First check the execution scope guidance on the example screen. The following describes preparation for extending the assignment in a separate project. Implement the work yourself in an HTML and ES module project served by a separate local HTTP development server. Pin and record the installed pixi.js 8.x version.

The linked example is a starting point. It does not implement every task below. Complete work beyond its supported scope in a separate project.

Practice tasks

  1. Prepare day-19.js and index.html in the external practice project. Create BlurFilter({strength:3,quality:4}) and attach it to a Container.
  2. Alternate between individual filters and a parent filter on the same Sprite list, recording the screen and frame intervals.
  3. Save the output with the input condition One parent, then run again with Each Sprite. Expected: Effect boundaries and intermediate processing costs may differ. Compare this with the actual screen and logs, and record the actual result and causes of any differences in day-19-notes.md.

Variables to observe

VariableBaselineChangeExpected change / hypothesis
Filter scopeOne parentEach SpriteEffect boundaries and intermediate processing costs may differ

Predictions in this table are not measured results. Change one condition at a time and record why the actual result differs.

Completion criteria

Self-check

  1. Do blur strength and quality serve the same role?
  2. When does a parent filter's processing area grow?

Official references

Linked example and execution scope

Example source · Runtime environments and limits

This is an editable browser experiment. Measurements vary with the current device and browser.

Source code and records are not overwritten automatically. Resetting an existing example also preserves your notes.

Next learning

Previous: Masks and Scroll Regions · Next: Blend Modes and Order

Open code, practice, and notes →