Giter Club home page Giter Club logo

pngb's Introduction

pngb

PNGB: GB Graphics Converter PNGB is a command line utility that converts PNG files to GBDK data definitions and code.

What is this good for?

PNGB can take a PNG image, slice it in 8x8 (or 8x16 if you are using GB "big sprites") tiles and output a single C source code file containing the pixel data, the color palette, attribute array and a tilemap (that recreates the source image using the extracted tiles).

It can additionally generate "test code" that allows you to see (to some extent) the result of the conversion and how to use the data.

PNGB currently supports 8x8 tiles (BKG or WIN layers) and Sprites (both 8x8 and 8x16).

It also supports color pictures. If your image has 4 colors or less PNGB will generate an equivalent 15-bit palette for GBC. For images with more than 4 colors you'll have the options to let PNGB convert it to grayscale first and then attempt to match each color with one of the four shades of the original Gameboy.

Currently PNGB can only generate a single palette for the whole image, but in a future it may be able to extract multiple palettes from a single image.


You can see more details and examples in http://damnsoft.org/web/software/pngb

pngb's People

Contributors

zal0 avatar battlecoder avatar

Watchers

James Cloos avatar

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.