Skip to content
Snippets Groups Projects
swap.md 729 B
Newer Older
Louis's avatar
Louis committed
# Command: Palette Swap

Use a given mapping of colours to alter the input image. The palette image must contain 2 columns, and any colour in the
input image will be checked against the first column of the palette, and if found will be replaced with the corresponding colour in the second column.

## Usage

```text
Usage: crunch swap --palette <PALETTE> <INPUT> <OUTPUT>

Arguments:
  <INPUT>   The path to the image file
  <OUTPUT>  The path to write the recoloured image
  <PALETTE> The path to the palette image

Options:
  -p, --palette <PALETTE>  The path to the palette file containing the output colours
  -h, --help               Print help
  -V, --version            Print version
```

## Example

![](/images/Swap.png)