Git Product home page Git Product logo

bmp2sms's Introduction

bmp2sms

this tool was only tested with TCL 8.6.*

basically a 'clone' of bmp2tile made by Maxim rewrote it as a TCL study and most importantly with portability in mind

its purpose is to convert 16 colors images files to a format suitable for inclusion in Sega Master System programs (written with wla-dx but other tools may work as well)

bmp2sms support PNG/GIF/PPM/PGM by default without the TkImg package and BMP/JPEG/PCX/XPM/TGA with TkImg images should have a width / height that are multiples of 8 otherwise padding will be added.

there is some things differing from bmp2tile:

  • target system is the Sega Master System (no support for Game Gear altough adding it would be easy)
  • the program perform 'smart' colours conversion if image colours does not match the SMS palette
  • indexed images are loaded as normal images (the palette is ignored), a palette is instead automatically generated
  • it load a complete directory instead of only one file at a time, there is planned support to save all files in one go
  • some features from bmp2tile are missing like 8x16 mode and cl123 palette output mode
  • palette order may be different so tiles value may be different on the same image (because bmp2tile will load indexed images while bmp2sms always generate it)
  • allow negative tile start index (-1 = 0x3ff etc.) which may be useful for some effects
  • no commandline mode
  • no status bar

then there is some features:

  • palette index picker (click somewhere on the image)
  • palette editor (double click on a palette color square or drag around a color square to organize the palette)

if the package TkImg is found then these additional images format will be supported: BMP/JPEG/PCX/XPM/TGA

TkImg can be installed easily with a package manager, example : sudo apt install libtk-img

this program also support compression plugins made for bmp2tile, this feature require the Ffidl Tcl package

Note for .bmp images: The image should not include colour space information (see BMP export compatibility options for GIMP) otherwise the image will fail to load.

this is a first try at TCL, an interesting programming language with great libraries

Usage

tclsh8.6 bmp2sms.tcl

Screenshots

Alt text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.