You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`auto-palette` is a Rust project that offers color palette extraction from images. It consists of the following components:
13
+
14
+
*`auto-palette`: Core library for programmatic usage.
15
+
*`auto-palette-cli`: Command-line interface for easy usage.
16
+
*`auto-palette-wasm`: WebAssembly version for browser usage.
17
+
18
+
Perfect for developers, designers and anyone needing efficient color palette extraction.
19
+
11
20
## Features
12
21
13
22
<imgsrc="gfx/laura-clugston-pwW2iV9TZao-unsplash.jpg"alt="Hot air balloon on blue sky"width="480">
@@ -17,24 +26,24 @@
17
26
> Photo by <ahref="https://unsplash.com/@laurahclugston?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Laura Clugston</a> on <ahref="https://unsplash.com/photos/multi-colored-hot-air-balloon-pwW2iV9TZao?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Unsplash</a>
18
27
19
28
* Automatically extracts prominent color palettes from images.
20
-
* Provides detailed information on color, position, and population.
21
-
* Supports multiple extraction algorithms, including`DBSCAN`, `DBSCAN++`, and `KMeans++`.
22
-
* Supports multiple color spaces, including `RGB`, `HSL`, and `LAB`.
23
-
*Supports the selection of prominent colors based on multiple themes, including`Vivid`, `Muted`, `Light`, and `Dark`.
29
+
* Provides detailed color swatch information (color, position, population)
30
+
* Supports multiple extraction algorithms:`DBSCAN`, `DBSCAN++`, and `KMeans++`.
31
+
* Supports numerous color spaces: `RGB`, `HSL`, `LAB`, `LCHuv`, `ANSI256` and more.
32
+
*Theme-based swatch selection: `Basic`, `Colorful`,`Vivid`, `Muted`, `Light`, and `Dark`.
24
33
* Available as a Rust library, Wasm, and a CLI tool.
25
34
26
35
## Installation
27
36
28
-
### Rust
37
+
### Rust Library
29
38
30
39
To use `auto-palette` in your Rust project, add it to your `Cargo.toml`.
31
40
32
41
```toml
33
42
[dependencies]
34
-
auto-palette = "0.6.0"
43
+
auto-palette = "0.7.0"
35
44
```
36
45
37
-
### CLI
46
+
### CLI Tool
38
47
39
48
To use command-line interface, install the `auto-palette-cli` crate.
40
49
@@ -44,7 +53,7 @@ cargo install auto-palette-cli
44
53
45
54
## Usage
46
55
47
-
### Rust
56
+
### Rust Example
48
57
49
58
Here is an example of extracting the color palette from an image using the Rust library.
50
59
See the [examples](crates/auto-palette/examples) directory for more examples.
@@ -71,7 +80,7 @@ fn main() {
71
80
}
72
81
```
73
82
74
-
### CLI
83
+
### CLI Example
75
84
76
85
Here is an example of extracting the color palette from an image using the CLI tool.
0 commit comments