Capítulo 311 de 411

Chapter 311: PixiPlugin.registerPIXI

Core Idea

Registers the main PIXI library object with the PixiPlugin so that it can find the necessary classes/objects. You only need to register it once.

Key Concepts

  • PIXI: Object

  • Container: (required)
  • Sprite: (optional) Needed to render a textured object
  • filters: (optional) Needed to animate ColorMatrixFilter and BlurFilter properties

Code Examples

PixiPlugin.registerPIXI(PIXI);
  • What it demonstrates: typical usage of PixiPlugin.registerPIXI in a GSAP animation.

Key Takeaways

  1. PIXI: Object

  2. Container: (required)
  3. Sprite: (optional) Needed to render a textured object
  4. filters: (optional) Needed to animate ColorMatrixFilter and BlurFilter properties