npx skills add ...
npx skills add freshtechbro/claudedesignskills --skill pixijs-2d
Fast, lightweight 2D rendering engine for creating interactive graphics, particle effects, and canvas-based applications using WebGL/WebGPU. Use this skill when building 2D games, particle systems, interactive canvases, sprite animations, or UI overlays on 3D scenes. Triggers on tasks involving PixiJS, 2D rendering, sprite sheets, particle effects, filters, or high-performance canvas graphics. Alternative to Canvas2D with WebGL acceleration for rendering thousands of sprites at 60 FPS.
npx skills add freshtechbro/claudedesignskills --skill pixijs-2d
Fast, lightweight 2D rendering engine for creating interactive graphics, particle effects, and canvas-based applications using WebGL/WebGPU.
Trigger this skill when you encounter:
Use PixiJS for: High-performance 2D rendering (up to 100,000+ sprites), particle systems, interactive UI, 2D games, data visualization with WebGL acceleration.
Don't use for: 3D graphics (use Three.js/R3F), simple animations (use Motion/GSAP), basic DOM manipulation.
The entry point for PixiJS applications:
Key Properties:
app.stage: Root container for all display objectsapp.renderer: WebGL/WebGPU renderer instanceapp.ticker: Update loop for animationsapp.screen: Canvas dimensionsCore visual elements loaded from images:
Quick Creation:
Draw vector shapes programmatically:
SVG Support:
Optimized container for rendering thousands of sprites:
Performance: Up to 10x faster than regular Container for static properties.
Apply per-pixel effects using WebGL shaders:
Available Filters:
BlurFilter: Gaussian blurColorMatrixFilter: Color transformations (sepia, grayscale, etc.)DisplacementFilter: Warp/distort pixelsAlphaFilter: Flatten alpha across childrenNoiseFilter: Random grain effectFXAAFilter: Anti-aliasingDisplay text with styling:
Performance Tip: Use BitmapText for frequently changing text (scores, counters).
Problem: Memory leaks from unreleased GPU resources.
Solution:
Problem: Changing scale when dynamicProperties.scale = false has no effect.
Solution:
Problem: Filters are expensive; too many cause performance issues.
Solution:
Problem: Updating Text re-generates texture every time.
Solution:
Problem: Calling clear() removes all geometry but doesn't automatically redraw.
Solution:
Problem: Creating sprites from URLs causes async issues.
Solution:
PixiJS excels at high-performance 2D rendering with WebGL acceleration. Key strengths:
Use for particle systems, 2D games, data visualizations, and interactive canvas applications where performance is critical.