pixijs-color

Official

Effortlessly manage PixiJS v8 colors.

Authorpixijs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The Color class provides a unified way to create, convert, and manipulate colors for tints, fills, strokes, and ColorSource-compatible APIs in PixiJS v8, simplifying color handling across the engine.

Core Features & Use Cases

  • Input formats: accepts hex numbers, hex strings, CSS color names, RGB/RGBA, HSL, and typed arrays, making it easy to convert colors from various sources.
  • Conversion methods: supports toHex, toNumber, toArray, toRgba, and more for seamless integration with shaders, textures, and DOM.
  • Manipulation and reuse: supports setAlpha, multiply, premultiply, and Color.shared for hot-path operations in real-time rendering.
  • Common helpers: isColorLike() as a type guard to validate inputs before constructing Color.

Quick Start

Create a new Color("#ff6600") and use toHex() or toNumber() in your rendering code.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pixijs-color
Download link: https://github.com/pixijs/pixijs-skills/archive/main.zip#pixijs-color

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.