
Pixijs Color
Handles all color operations in PixiJS v8, from construction to conversion to manipulation. You can pass in hex strings, CSS names, RGB/HSL objects, arrays, or Uint8Arrays, then convert to whatever format you need for tints, fills, or GPU buffers. The Color.shared singleton is genuinely useful for hot paths where you're doing per-frame tint calculations and don't want to allocate. One gotcha: array inputs expect normalized 0-1 values unless you explicitly use Uint8Array, and all output methods normalize to 0-1 even though RGB object inputs take 0-255. The doc covers premultiplication, component access, and buffer reuse patterns that matter when you're pushing colors into vertex attributes every frame.
- skills.sh installs
- 6.8K
- GitHub stars
- 365
- last updated
- Aug 21, 2026
Install
$ npx -y skills add pixijs/pixijs-skills --skill pixijs-color --agent claude-codeInstalls into .claude/skills of the current project.
Files
Handles all color operations in PixiJS v8, from construction to conversion to manipulation. You can pass in hex strings, CSS names, RGB/HSL objects, arrays, or Uint8Arrays, then convert to whatever format you need for tints, fills, or GPU buffers. The Color.shared singleton is genuinely useful for hot paths where you're doing per-frame tint calculations and don't want to allocate. One gotcha: array inputs expect normalized 0-1 values unless you explicitly use Uint8Array, and all output methods normalize to 0-1 even though RGB object inputs take 0-255. The doc covers premultiplication, component access, and buffer reuse patterns that matter when you're pushing colors into vertex attributes every frame.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/pixijs/pixijs-skills
- Categories
- Frontend Development, Marketing & SEO, Design & UI/UX
- First seen
- May 16, 2026
More from pixijs/pixijs-skills
All 26- Pixijs Blend Modes6.8K
- Pixijs Scene Dom Container6.7K
- Pixijs Scene Mesh6.7K
- Pixijs Environments6.7K
- Pixijs Scene Gif6.6K
- Pixijs Accessibility6.6K
- Pixijs Migration V86.4K
- Pixijs Html Source5.5K
- Pixijs8K
- Pixijs Performance7.1K
- Pixijs Application7.1K
- Pixijs Scene Graphics7.1K
- Pixijs Core Concepts7.1K
- Pixijs Assets7K
- Pixijs Scene Sprite7K
- Pixijs Events7K
- Pixijs Scene Container7K
- Pixijs Math6.9K
- Pixijs Scene Core Concepts6.9K
- Pixijs Scene Text6.9K
- Pixijs Ticker6.9K
- Pixijs Filters6.9K
- Pixijs Scene Particle Container6.9K
- Pixijs Custom Rendering6.8K