Skip to content

tipsypastels/act2pal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Converts Adobe Color Tables to .pal files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages