Function load

Source
pub fn load(path: &str) -> Result<Vec<Record>, ImageError>
Expand description

Open the image located at the path specified, return 16 dominant colors.

ยงExamples

let colors = image_palette::load("test.jpg").unwrap();

for item in colors {
  println!("{}:{}", item.color(), item.count());
}