pixijs-color

Create, manipulate, and convert colors in PixiJS across multiple formats.

2|2|Updated May 1, 2026
One-click install
npx skills add https://github.com/adamhjk/mvtt --skill pixijs-color-adamhjk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pixijs-color
Source: https://github.com/adamhjk/mvtt/tree/main/.agents/skills/pixijs-color
Command: npx skills add https://github.com/adamhjk/mvtt --skill pixijs-color-adamhjk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating, modifying, and converting colors in PixiJS, reducing complexity and repetitive code for developers.

Core Features & Use Cases

  • Color Format Handling: Supports multiple input formats including hex, CSS names, RGB/HSL objects, arrays, and Uint8Arrays for versatile color creation.
  • Color Conversion: Provides methods to convert colors to hex, number, array, rgba string, and other formats useful for rendering and APIs.
  • Use Case: Adjust the tint of a sprite dynamically based on user input or game events, such as changing colors or blending effects.

Quick Start

Instantiate a Color object with a hex string, then convert it to a number to apply as a tint on a sprite.

Frequently Asked Questions about pixijs-color

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

FAQPage Schema
How do I convert a hex color to a number for a PixiJS sprite tint?

You can create a Color object using multiple input formats including hex strings, CSS names, RGB or HSL objects, arrays, and Uint8Arrays. This versatility enables efficient color creation and manipulation within PixiJS projects.

What color conversion formats does PixiJS support for rendering and APIs?

PixiJS color conversion supports outputting colors to hex, number, array, and rgba string formats. These methods ensure precise color control and compatibility across various rendering workflows and external APIs.

Can I dynamically adjust sprite colors based on user input in PixiJS?

Yes, you can dynamically adjust sprite colors based on user input or game events by instantiating a Color object and applying the converted value as a tint. This enables efficient color blending and adjustments during web game development.

Does this color manipulation approach work with CSS color names in web graphics?

Yes, this color manipulation approach supports CSS color names as valid input for creating Color objects. It handles the conversion internally, allowing developers to use familiar CSS names alongside hex and RGB formats in PixiJS.