gimp_palette 0.1.1

A library for reading and writing the GIMP palette format
Documentation
  • Coverage
  • 11.76%
    2 out of 17 items documented0 out of 9 items with examples
  • Size
  • Source code size: 8.90 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 556.71 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • phrohdoh/gimp-palette-rs
    3 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Phrohdoh

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