Reference Color Extractor is a Lua script designed to generate optimized color palettes from external reference images. Unlike the built-in palette generation, this tool provides control over the extraction logic via three distinct algorithms.
Features
-
External File Support: Analyze PNG, JPG, or BMP files without importing them into your project.
-
Three Extraction Methods:
-
Frequency: Selects the most dominant colors by pixel count.
-
Diversity (Median Cut): Prioritizes a wide range of tones, preserving accents and highlights.
-
Balanced (K-Means): Uses iterative clustering to find mathematical color centers for natural transitions.
-
-
UI Integration: Preview extracted colors before applying them.
-
Palette Management: Option to replace the current palette or append colors with a spacer.
Installation
-
Copy the
.luafile to your Aseprite scripts folder (File > Scripts > Open Scripts Folder). -
Rescan or restart Aseprite.
-
Access via File > Scripts > Reference Color Extractor.
Download
Developed for personal workflow efficiency, now available for public use.