#color #adobe #convert #table #color-palette #pal #input

bin+lib act2pal

Converts Adobe Color Tables to .pal files

5 releases

0.1.4 Jan 12, 2025
0.1.3 Jan 12, 2025
0.1.2 Jan 12, 2025
0.1.1 Jan 12, 2025
0.1.0 Jan 12, 2025

#1 in #pal

Download history 341/week @ 2025-01-07 52/week @ 2025-01-14 6/week @ 2025-01-21

399 downloads per month

MIT license

7KB
133 lines

act2pal

Crates.io docs license

Converts Adobe Color Tables to .pal files.

Usage (CLI)

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

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.

Dependencies

~1–1.7MB
~31K SLoC