What problem does it solve?
This Skill helps you create, convert, and transform colors for PixiJS v8 without getting tripped up by different input formats, normalization rules, or alpha/tint behavior.
Core Features & Use Cases
- Color creation from many inputs: Build PixiJS
Color objects from hex, CSS names, numeric and object forms, and typed arrays (including alpha in 8-digit hex).
- Reliable conversions and packing: Convert to hex strings, numeric values, normalized arrays, RGBA/RGB objects, Uint8 outputs, and packed integers for fast usage.
- Tint and alpha manipulation: Apply alpha, multiply/premultiply channels, and reuse
Color.shared to avoid per-frame allocations in render loops.
Use case: You have a sprite tinting system where users choose colors in UI form (hex strings, CSS names, or RGB inputs) and the renderer needs packed numeric/tint-ready values efficiently every frame.
Quick Start
Use the pixijs-color skill to convert a UI-provided color string into a PixiJS tint number using Color.shared.