Color Thief
Extract dominant and accent colors from images automatically. Color Thief analyzes textures to retrieve either a single dominant color or a full palette, enabling dynamic UI theming, procedural color schemes, and intelligent asset-based styling without manual color selection.
com.lokesh.color-thief 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/color-thief.git README Markdown
Copy this to your project's README.md
## Installation
Add **Color Thief** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/color-thief.git
```
[](https://www.pkglnk.dev/pkg/color-thief)README
Color Thief Unity
A code for grabbing the color palette from an image.
Original Project Color Thief by lokesh
Ported Project of Color Thief .NET by KSemenenko
Unity Version by chiutse
Unity Package Manager version by hybridherbst
How To Use
Dominant Color
var dominant = new ColorThief.ColorThief();
Color color = dominant.GetColor(texture).UnityColor;
Palette Color
var palette = new ColorThief.ColorThief();
List<ColorThief.QuantizedColor> colors = palette.GetPalette(texture, paletteColors.Length);
No comments yet. Be the first!