Converter from BMP to TMS9928 format

   Author:       at nanochess (Óscar Toledo G.)
   Uploader:     polluks+aminet sdf org (Stefan Haubenthal)
   Type:         gfx/conv
   Version:      2.4
   Architecture: ppc-morphos; m68k-amigaos
   Date:         2024-10-13
   Readme:       http://aminet.net/gfx/conv/TMSColor.readme
   Downloads:    276

http://aminet.net/gfx/conv/TMSColor.lha

TMSColor: Converter from BMP to TMS9928 format

2.4 Sep/25/2024 by Oscar Toledo G. http://nanochess.org

Usage:

tmscolor [options] image.bmp image.asm [label]

Creates image for use with assembler code

-b Generates CVBasic source code.

-n Removes CVBasic stub code for displaying.

-z Output file is compressed with Pletter.

-s Process tiles in chunks of 16 pixels high (sprites).

-sb Same as above but generates BITMAP statements.

-t Generates minimum of tiles required.

-t1 Same but starting at tile 1 (0-255).

-e45d2 Replaces color 4 with 5 and d with 2 before processing.

-fx Flip image along the X-coordinate (mirror)

-fy Flip image along the Y-coordinate

-i Generates BITMAP statements instead of DATA

-i2 Generates BITMAP statements using X and .

-m Generates magic sprites for areas with more than 2 colors

-p1 Searches best color combination for photo (slow)

-p2 Searches best color combination for photo (2x2 dither) (slow)

-o result.bmp

Outputs the final image, plus highlight of errors (if any).

-d Direct copy of binary input file to output (can compress).

Useful for getting binary data in ASM or CVBasic code.

Best photo conversion is generated by this command line:

tmscolor -p2 photo.bmp photo.bin

Photos will look better if the contrast is good.

Magic sprites will work only with an image of 256x192 pixels.

Thanks to LeandroCorreia for ideas of color conversion.

Contents of gfx/conv/TMSColor.lha

 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                   20      20 100.0% -lh0- 0695 Sep 25 20:20 TMSColor/.gitignore
[generic]                  757    1389  54.5% -lh5- f767 Sep 25 20:20 TMSColor/LICENSE.txt
[generic]                  144     199  72.4% -lh5- 77fd Sep 25 20:20 TMSColor/Makefile
[generic]                 3184   10777  29.5% -lh5- b020 Sep 25 20:20 TMSColor/pletter.c
[generic]                 1089    2197  49.6% -lh5- c3b5 Sep 25 20:20 TMSColor/README.md
[generic]                   94     105  89.5% -lh5- d73b Jul 14 12:40 TMSColor/SCOPTIONS
[generic]                47892   86368  55.5% -lh5- 2e09 Oct 14 01:28 TMSColor/tmscolor
[generic]                28581   50712  56.4% -lh5- 1fc2 Oct 14 01:30 TMSColor/tmscolor.68k
[generic]                11147   56219  19.8% -lh5- d59e Sep 25 20:20 TMSColor/tmscolor.c
[generic]                  158   12342   1.3% -lh5- 0323 Sep 25 20:20 TMSColor/vdp_colors.bmp
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        10 files   93066  220328  42.2%            Oct 14 03:04

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminet aminet net>