Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 2.25 KB

File metadata and controls

63 lines (43 loc) · 2.25 KB

OMT Color Mapper Examples

The omt-color-mapper tool maps colors from one palette to another while preserving perceptual color distances using the OKLab color space.

Example: Fish Character Variants

This example demonstrates how to create different color variants of a character sprite by mapping from a source palette to various target palettes.

Available Palettes

Bronze (Source) Silver Gold Diamond Ruby
Bronze Palette Silver Palette Gold Palette Diamond Palette Ruby Palette

Color Mapping Examples

Silver Variant

Command:

omt-color-mapper map --source-pal pal-bronze.png --target-pal pal-silver.png --input fiiish-bronze.png --output fiiish-silver.png
Source Palettes Result
Bronze Fish Bronze Palette
Silver Palette
Silver Fish

Gold Variant

Command:

omt-color-mapper map --source-pal pal-bronze.png --target-pal pal-gold.png --input fiiish-bronze.png --output fiiish-gold.png
Source Palettes Result
Bronze Fish Bronze Palette
Gold Palette
Gold Fish

Diamond Variant

Command:

omt-color-mapper map --source-pal pal-bronze.png --target-pal pal-diamond.png --input fiiish-bronze.png --output fiiish-diamond.png
Source Palettes Result
Bronze Fish Bronze Palette
Diamond Palette
Diamond Fish

Ruby Variant

Command:

omt-color-mapper map --source-pal pal-bronze.png --target-pal pal-ruby.png --input fiiish-bronze.png --output fiiish-ruby.png
Source Palettes Result
Bronze Fish Bronze Palette
Ruby Palette
Ruby Fish

Batch Generation

See generate-fish-variants.sh for a script that generates all variants at once.