pixijs-blend-modes

Assign and transition PixiJS v8 display object blend modes.

1|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/matthewharwood/dean-stack --skill pixijs-blend-modes-matthewharwood
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pixijs-blend-modes
Source: https://github.com/matthewharwood/dean-stack/tree/main/.claude/skills/pixijs-blend-modes
Command: npx skills add https://github.com/matthewharwood/dean-stack --skill pixijs-blend-modes-matthewharwood

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing complex visual compositions in PixiJS requires careful control of blend modes to achieve glow, shadows, and color effects while preserving performance. This skill abstracts the complexity by covering both standard and advanced blend modes and by guiding on batching to minimize draw calls.

Core Features & Use Cases

  • Support standard blend modes such as normal, add, multiply, screen, erase, min, and max to achieve common compositing results.
  • Support advanced blend modes via pixi.js/advanced-blend-modes (color-burn, overlay, hard-light, etc.) for richer visual effects.
  • Enable batch-friendly ordering to reduce draw calls when multiple sprites share the same blend mode.
  • Use case: compose layered sprites with varying blend modes to create glow, shadows, and color-shifted UI elements in a performant scene.

Quick Start

Set blendMode values on PixiJS sprites to apply the desired compositing effect, starting with standard modes and enabling advanced-blend-modes when needed.

Frequently Asked Questions about pixijs-blend-modes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply blend modes to sprites in PixiJS?

To apply blend modes in PixiJS, set the blendMode property on your display objects to standard modes like normal, add, multiply, screen, or erase. This assigns compositing effects directly to layered sprites for visual results like glow or shadows.

How do I use advanced blend modes like overlay and hard-light in PixiJS?

Advanced blend modes in PixiJS require importing pixi.js/advanced-blend-modes to unlock options like color-burn, overlay, and hard-light. This import enables richer visual effects while ensuring WebGL back-buffer requirements are met for proper rendering.

Why do blend modes cause performance issues with many sprites in WebGL?

Blend modes can cause performance issues because switching modes breaks sprite batching, increasing draw calls. You can improve WebGL performance by using batch-friendly ordering, grouping sprites that share the same blend mode together to minimize draw call overhead.

What is the difference between standard and advanced compositing modes in PixiJS?

Standard compositing modes in PixiJS include normal, add, multiply, screen, erase, min, and max, while advanced modes add color-burn, overlay, and hard-light. Advanced modes require an additional import and WebGL back-buffer support to render correctly.

Can I transition between blend modes dynamically on PixiJS display objects?

Yes, you can transition between blend modes dynamically by updating the blendMode property on PixiJS display objects. This allows you to shift compositing effects during runtime to create animated visual transitions for layered sprites and filters.