#palette #gpl #gimp

bin+lib gimp_palette

A library for reading and writing the GIMP palette format

2 releases

Uses old Rust 2015

0.1.1 May 4, 2017
0.1.0 May 3, 2017

#4 in #gpl

MIT license

8KB
172 lines

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()));
}

No runtime deps