#color #extract #image #color-palette #executable #file #dark

bin+lib vibrant

Extract vibrant colors from an image file. Can be used as a library, but also contains a simple executable.

1 unstable release

Uses old Rust 2015

0.1.0 Sep 25, 2015

#17 in #dark

MIT license

210KB
322 lines

Vibrant-rs

Extract vibrant colors from an image file. Can be used as a library, but also contains a simple executable.

Build Status Coverage Status

Getting Started

$ curl https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/687px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg > mona.jpg
$ cargo run --bin primary -- ./mona.jpg
Color Palette { #4D4D4D, #DFBB62, #A87B3A, #0F071C, #4E4141, #814F27, #512A22, #251629, #2C161E, #777B57 }
$ cargo run --bin vibrancy -- ./mona.jpg
Vibrant Colors {
	Primary Vibrant Color: #C3973F
	Dark Vibrant Color: #703C12
	Light Vibrant Color: #FEE087
	Muted Color: #A49F5C
	Dark Muted Color: #55362C
	Light Muted Color: #B4B57E
}

License

MIT

Dependencies

~2MB
~42K SLoC