changeset 818:a6452b575c63

Add some online documentation.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 16 May 2014 20:07:38 +0300
parents e574764ae065
children 0177d4a66d48
files tools/gfxconv.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Fri May 16 20:07:00 2014 +0300
+++ b/tools/gfxconv.c	Fri May 16 20:07:38 2014 +0300
@@ -208,7 +208,20 @@
     dmArgsPrintHelp(stdout, optList, optListN);
 
     printf(
+    "Palette / color remapping (-R)\n"
+    "------------------------------\n"
+    "Indexed palette/color remapping can be performed via the -R option, either\n"
+    "specifying single colors or filename of file containing remap definitions.\n"
+    "Colors to be remapped can be specified either by their palette index or by\n"
+    "their RGB values as a hex triplet (#rrggbb). Example of a remap definition:\n"
+    "-R #000000:0,#ffffff:1 would remap black and white to indices 0 and 1.\n"
     "\n"
+    "Remap file is specified as -R @filename, and it is a plan text file with\n"
+    "one remap definition per line. All empty lines and lines starting with a\n"
+    "semicolor (;) will be ignored. Whitespace separating items is ignored, too.\n"
+    "\n"
+    "Color map defs\n"
+    "--------------\n"
     "Color map definitions are used for ANSI and image output, to declare what\n"
     "output colors of the C64 palette are used for each single color/multi color\n"
     "bit-combination. For example, if the input is multi color sprite or char,\n"