act2pal 0.1.4

Converts Adobe Color Tables to .pal files.
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented0 out of 5 items with examples
  • Size
  • Source code size: 16.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 638.29 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 20s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tipsypastels

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.