| Crates.io | gimp_palette |
| lib.rs | gimp_palette |
| version | 0.1.1 |
| created_at | 2017-05-03 23:04:57.140931+00 |
| updated_at | 2017-05-04 13:41:28.556997+00 |
| description | A library for reading and writing the GIMP palette format |
| homepage | |
| repository | https://github.com/Phrohdoh/gimp-palette-rs |
| max_upload_size | |
| id | 13003 |
| size | 8,740 |
gimp_paletteConverts RGB color values to a GIMP gpl palette
MIT
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()));
}