Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 818:a6452b575c63
Add some online documentation.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 16 May 2014 20:07:38 +0300 |
parents | 5753d7f24106 |
children | 0177d4a66d48 |
comparison
equal
deleted
inserted
replaced
817:e574764ae065 | 818:a6452b575c63 |
---|---|
206 { | 206 { |
207 dmPrintBanner(stdout, dmProgName, "[options] <input file>"); | 207 dmPrintBanner(stdout, dmProgName, "[options] <input file>"); |
208 dmArgsPrintHelp(stdout, optList, optListN); | 208 dmArgsPrintHelp(stdout, optList, optListN); |
209 | 209 |
210 printf( | 210 printf( |
211 "Palette / color remapping (-R)\n" | |
212 "------------------------------\n" | |
213 "Indexed palette/color remapping can be performed via the -R option, either\n" | |
214 "specifying single colors or filename of file containing remap definitions.\n" | |
215 "Colors to be remapped can be specified either by their palette index or by\n" | |
216 "their RGB values as a hex triplet (#rrggbb). Example of a remap definition:\n" | |
217 "-R #000000:0,#ffffff:1 would remap black and white to indices 0 and 1.\n" | |
211 "\n" | 218 "\n" |
219 "Remap file is specified as -R @filename, and it is a plan text file with\n" | |
220 "one remap definition per line. All empty lines and lines starting with a\n" | |
221 "semicolor (;) will be ignored. Whitespace separating items is ignored, too.\n" | |
222 "\n" | |
223 "Color map defs\n" | |
224 "--------------\n" | |
212 "Color map definitions are used for ANSI and image output, to declare what\n" | 225 "Color map definitions are used for ANSI and image output, to declare what\n" |
213 "output colors of the C64 palette are used for each single color/multi color\n" | 226 "output colors of the C64 palette are used for each single color/multi color\n" |
214 "bit-combination. For example, if the input is multi color sprite or char,\n" | 227 "bit-combination. For example, if the input is multi color sprite or char,\n" |
215 "you can define colors like: -c 0,8,3,15 .. for single color: -c 0,1\n" | 228 "you can define colors like: -c 0,8,3,15 .. for single color: -c 0,1\n" |
216 "The numbers are palette indexes, and the order is for bit(pair)-values\n" | 229 "The numbers are palette indexes, and the order is for bit(pair)-values\n" |