colormap -V (return code: 1)
Color map construction utility for Allegro 4.4.2, Unix
By Shawn Hargreaves, 2011
Usage: colormap <mode> palfile.[pcx|bmp] outputfile [r g b] [modifiers]
Reads a palette from the input file, and writes out a 64k mapping
table for implementing lighting and translucency effects (in a
suitable format for use with the global color_map pointer).
The mode can be either 'light', to build a lighting table, or 'trans',
to build a translucency table.
The r, g, and b values control the color blending formula. For lighting
tables they specify the color to use at light level zero, in VGA 0-63
format (default black). For translucency tables they specify the degree
of translucency for each color component, ranging 0-255 (default 128,
0=invisible, 255=solid).
Modifiers:
'ss=x' - makes source color #x completely solid
'st=x' - makes source color #x completely transparent
'ds=x' - makes destination color #x completely solid
'dt=x' - makes destination color #x completely transparent
colormap -HELP (return code: 1)
Color map construction utility for Allegro 4.4.2, Unix
By Shawn Hargreaves, 2011
Usage: colormap <mode> palfile.[pcx|bmp] outputfile [r g b] [modifiers]
Reads a palette from the input file, and writes out a 64k mapping
table for implementing lighting and translucency effects (in a
suitable format for use with the global color_map pointer).
The mode can be either 'light', to build a lighting table, or 'trans',
to build a translucency table.
The r, g, and b values control the color blending formula. For lighting
tables they specify the color to use at light level zero, in VGA 0-63
format (default black). For translucency tables they specify the degree
of translucency for each color component, ranging 0-255 (default 128,
0=invisible, 255=solid).
Modifiers:
'ss=x' - makes source color #x completely solid
'st=x' - makes source color #x completely transparent
'ds=x' - makes destination color #x completely solid
'dt=x' - makes destination color #x completely transparent