Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 571 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 571 Bytes

Color Thief Unity

A code for grabbing the color palette from an image. Uses C#.NET and Unity 2DTexture to make it happen.

Origin Project Color Thief

Ported Project of Color Thief .NET

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);