kmeans_dominant_colors 0.1.7
kmeans_dominant_colors: ^0.1.7 copied to clipboard
A Flutter package to extract dominant colors from images using K-means clustering algorithm. Perfect for generating color palettes, theme suggestions, and image analysis.
Dominant Colors #
A Flutter package for extracting dominant colors from images using K-means clustering algorithm.
Features #
- 🎨 Extract dominant colors from any image
- ⚡ High-performance implementation with image resizing
- 📊 Get detailed cluster information (pixel count, percentages)
- 🎯 Configurable color count and algorithm parameters
- 🔄 K-means++ initialization for better results
- 🎪 Returns colors sorted by dominance
- 📱 Flutter-optimized and null-safe
Installation #
Add this to your pubspec.yaml:
dependencies:
kmeans_dominant_colors:
git:
url: https://github.com/Mouhib777/kmeans_dominant_colors# kmeans_dominant_colors