Expand description
§act2pal
Converts Adobe Color Tables to .pal files.
§Usage (CLI)
cargo install act2pal
act2pal -i input.act -o output.palThe --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§Usage (Rust)
ⓘ
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.
Structs§
- Color
- An RGB color.
- Palette
- A palette of colors created from a vector or from parsing the bytes of a
.actfile. - Parse
Error - An error encountered when the bytes of a
.actfile cannot be parsed.