gimp_palette

Crates.iogimp_palette
lib.rsgimp_palette
version0.1.1
sourcesrc
created_at2017-05-03 23:04:57.140931
updated_at2017-05-04 13:41:28.556997
descriptionA library for reading and writing the GIMP palette format
homepage
repositoryhttps://github.com/Phrohdoh/gimp-palette-rs
max_upload_size
id13003
size8,740
Taryn (Phrohdoh)

documentation

https://docs.rs/gimp_palette/

README

gimp_palette

Converts RGB color values to a GIMP gpl palette

License

MIT

Usage

extern crate gimp_palette;

fn main() {
    let colors = vec![ gimp_palette::Color { r: 0, g: 50, b: 255 } ];
    let palette = gimp_palette::Palette::new("Example", colors).unwrap();
    palette.write_to_file("test.gpl").expect(&format!("Failed to write {} to test.gpl", palette.get_name()));
}
Commit count: 10

cargo fmt