https://github.com/ahkohd/average_color
🎇 Get the average color of an image
https://github.com/ahkohd/average_color
image-processing rust rust-lang tokio-rs
Last synced: 3 months ago
JSON representation
🎇 Get the average color of an image
- Host: GitHub
- URL: https://github.com/ahkohd/average_color
- Owner: ahkohd
- Created: 2021-09-12T21:11:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-05T20:50:44.000Z (3 months ago)
- Last Synced: 2025-04-16T05:26:04.891Z (3 months ago)
- Topics: image-processing, rust, rust-lang, tokio-rs
- Language: Rust
- Homepage: https://crates.io/crates/average_color
- Size: 159 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# average_color
A simple image average color extractor written in 🦀 Rust
[](https://github.com/ahkohd/average_color/actions/workflows/rust.yml)
---
## 🔧 Usage
```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);
}
```## 📖 Docs
- [API reference (docs.rs)](https://docs.rs/average_color/)