Consistently use "palette spec" not "color spec"

Fixes #1436
This commit is contained in:
Rangi42
2024-08-04 16:24:14 -04:00
parent 8af9e9d465
commit 436580a649

View File

@@ -14,7 +14,7 @@
.Op Fl v Op Fl v No ... .Op Fl v Op Fl v No ...
.Op Fl a Ar attrmap | Fl A .Op Fl a Ar attrmap | Fl A
.Op Fl b Ar base_ids .Op Fl b Ar base_ids
.Op Fl c Ar color_spec .Op Fl c Ar pal_spec
.Op Fl d Ar depth .Op Fl d Ar depth
.Op Fl L Ar slice .Op Fl L Ar slice
.Op Fl N Ar nb_tiles .Op Fl N Ar nb_tiles
@@ -111,16 +111,16 @@ Both default to 0.
When generating palettes, use a color curve mimicking the Game Boy Color's screen. When generating palettes, use a color curve mimicking the Game Boy Color's screen.
The resulting colors may look closer to the input image's The resulting colors may look closer to the input image's
.Sy on hardware and accurate emulators . .Sy on hardware and accurate emulators .
.It Fl c Ar color_spec , Fl \-colors Ar color_spec .It Fl c Ar pal_spec , Fl \-colors Ar pal_spec
Use the specified color palettes instead of having Use the specified color palettes instead of having
.Nm .Nm
automatically determine some. automatically determine some.
.Ar color_spec .Ar pal_spec
can be one of the following: can be one of the following:
.Bl -tag -width Ds .Bl -tag -width Ds
.It Sy inline palette spec .It Sy inline palette spec
If If
.Ar color_spec .Ar pal_spec
begins with a hash character begins with a hash character
.Ql # , .Ql # ,
it is treated as an inline palette specification. it is treated as an inline palette specification.
@@ -139,7 +139,7 @@ See
for an example of an inline palette specification. for an example of an inline palette specification.
.It Sy embedded palette spec .It Sy embedded palette spec
If If
.Ar color_spec .Ar pal_spec
is the case-insensitive word is the case-insensitive word
.Cm embedded , .Cm embedded ,
then the first four colors of the input PNG's embedded palette are used. then the first four colors of the input PNG's embedded palette are used.
@@ -147,7 +147,7 @@ It is an error if the PNG is not indexed, or if colors other than these 4 are us
.Pq This is different from the default behavior of indexed PNGs, as then unused entries in the embedded palette are ignored, whereas they are not with Fl c Cm embedded . .Pq This is different from the default behavior of indexed PNGs, as then unused entries in the embedded palette are ignored, whereas they are not with Fl c Cm embedded .
.It Sy external palette spec .It Sy external palette spec
Otherwise, Otherwise,
.Ar color_spec .Ar pal_spec
is assumed to be an external palette specification. is assumed to be an external palette specification.
The expected format is The expected format is
.Ql format:path , .Ql format:path ,