| Crates.io | act2pal |
| lib.rs | act2pal |
| version | 0.1.4 |
| created_at | 2025-01-12 03:32:20.946903+00 |
| updated_at | 2025-01-12 20:41:29.289253+00 |
| description | Converts Adobe Color Tables to .pal files. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1512931 |
| size | 16,986 |
Converts Adobe Color Tables to .pal files.
cargo install act2pal
act2pal -i input.act -o output.pal
The --assert-len flag can be used to early exit if the number of colors in the palette is not as expected.
act2pal -i input.act -o output.pal --assert-len 256
use act2pal::Palette;
let act = std::fs::read("input.act")?;
let pal = Palette::from_act(&act)?;
std::fs::write("output.pal", pal.to_string())?;
The Palette type implements Deref<Target = [Color]> and FromIterator<Color> and can thus be manipulated freely.