https://github.com/phrohdoh/gimp-palette-rs
Converts RGB color values to a GIMP gpl palette
https://github.com/phrohdoh/gimp-palette-rs
gimp mit palette rust
Last synced: about 1 year ago
JSON representation
Converts RGB color values to a GIMP gpl palette
- Host: GitHub
- URL: https://github.com/phrohdoh/gimp-palette-rs
- Owner: phrohdoh
- License: other
- Created: 2017-05-03T22:12:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T13:41:21.000Z (about 9 years ago)
- Last Synced: 2025-04-15T20:13:33.795Z (about 1 year ago)
- Topics: gimp, mit, palette, rust
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `gimp_palette`
Converts RGB color values to a GIMP gpl palette
## License
MIT
## Usage
```rust
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()));
}
```