Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Crunch
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Crunch
Commits
c9e958dd
Verified
Commit
c9e958dd
authored
4 months ago
by
Louis
Browse files
Options
Downloads
Patches
Plain Diff
Add 'swap' command to docs
parent
0cf658af
No related branches found
No related tags found
No related merge requests found
Pipeline
#681
failed with stages
Stage:
Stage:
in 44 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docs/SUMMARY.md
+1
-0
1 addition, 0 deletions
docs/SUMMARY.md
docs/commands/palette.md
+5
-0
5 additions, 0 deletions
docs/commands/palette.md
docs/commands/swap.md
+24
-0
24 additions, 0 deletions
docs/commands/swap.md
docs/images/Swap.png
+0
-0
0 additions, 0 deletions
docs/images/Swap.png
with
30 additions
and
0 deletions
docs/SUMMARY.md
+
1
−
0
View file @
c9e958dd
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
*
[
split
](
commands/split.md
)
*
[
split
](
commands/split.md
)
*
[
palette
](
commands/palette.md
)
*
[
palette
](
commands/palette.md
)
*
[
remap
](
commands/remap.md
)
*
[
remap
](
commands/remap.md
)
*
[
swap
](
commands/swap.md
)
*
[
pipeline
](
commands/pipeline.md
)
*
[
pipeline
](
commands/pipeline.md
)
### Pipelines
### Pipelines
...
...
This diff is collapsed.
Click to expand it.
docs/commands/palette.md
+
5
−
0
View file @
c9e958dd
...
@@ -19,6 +19,11 @@ Options:
...
@@ -19,6 +19,11 @@ Options:
-V, --version Print version
-V, --version Print version
```
```
### Palette Swapping
This command can also generate a template for use with the Swap command by specifying
`--format columns`
. The output will be a PNG
formatted image with a width of
`2`
, where each row is a unique colour found in the input image.
## Example
## Example


\ No newline at end of file
This diff is collapsed.
Click to expand it.
docs/commands/swap.md
0 → 100644
+
24
−
0
View file @
c9e958dd
# 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

\ No newline at end of file
This diff is collapsed.
Click to expand it.
docs/images/Swap.png
0 → 100644
+
0
−
0
View file @
c9e958dd
14.5 KiB
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment