Crates.io | average_color |
lib.rs | average_color |
version | 0.1.1 |
source | src |
created_at | 2021-09-17 07:38:44.338797 |
updated_at | 2021-09-18 16:28:05.39257 |
description | Get the average color of an image |
homepage | |
repository | https://github.com/ahkohd/get_average |
max_upload_size | |
id | 452681 |
size | 8,219 |
A simple image average color extractor written in 🦀 Rust
use average_color;
use tokio;
#[tokio::main]
fn main() {
let paths = ["~/test1.png", "~/test2.png"];
let results = average_color::get_averages_colors(&paths).await;
println!("results: {:?}", results);
}