A set of high-performance, dependency-free functions for extracting color information from image pixel data using the HTML Canvas API.
- Fast average color calculation using loop unrolling and
Uint32Array - Perceptual dominant color detection using HSL quantization and weighted analysis
- Luminance-weighted color averaging for natural-looking color estimation
- K-Means clustering for extracting top representative colors