act2pal

Crates.ioact2pal
lib.rsact2pal
version0.1.4
created_at2025-01-12 03:32:20.946903+00
updated_at2025-01-12 20:41:29.289253+00
descriptionConverts Adobe Color Tables to .pal files.
homepage
repository
max_upload_size
id1512931
size16,986
Dakota (tipsypastels)

documentation

README

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.

Commit count: 0

cargo fmt