It's a Rust port of https://github.com/marekm4/color-extractor but only RGB palettes are supported for now!
Status:
Demo:
https://color-extractor-demo.herokuapp.com/
Usage: ```rust extern crate dominant_color; extern crate image;
use std::path;
fn main() { let image = image::open(&path::Path::new("docs/Fotolia45549559320480.jpg")).unwrap(); let colors = dominantcolor::getcolors(&image.rawpixels()); println!("{:?}", colors); } ```
Example image:
Extracted colors: