Support rgbgfx -c auto for automatic palette generation

This commit is contained in:
Rangi42
2025-08-05 13:05:21 -04:00
parent 7020cf7188
commit 98c5c7f776
2 changed files with 15 additions and 1 deletions

View File

@@ -180,6 +180,16 @@ and so on.
Gray shade 0 is the lightest (white), 3 is the darkest (black).
The same gray shade cannot go in two color indexes.
To specify a DMG palette, the input PNG must have all its colors in shades of gray, without any transparent colors.
.It Sy automatic palette generation
If
.Ar pal_spec
is the case-insensitive word
.Cm auto ,
then a palette is automatically generated using the procedure described in
.Sx PALETTE GENERATION .
This is the default behavior if
.Fl c
was not specified.
.It Sy external palette spec
Otherwise,
.Ar pal_spec