2BITIMAGE
by Sandro MaffiodoWHAT IS:
2BITIMAGE is a simple web tool that convert images for the VGAX library. The VGAX library is a VGA signal generator for AVR. It can display a 120x60px framebuffer with 4 colors.
This tool convert the image FORMAT, by packing 4 pixels in one byte. This tool DONT perform any color conversion, nor any dithering or image resample.
VGAX can use 4 colors only, depending on how you wire your VGA DSUB15 connector. See [https://github.com/smaffer/vgax](VGAX on GitHub) for some documentations. To use 2BITIMAGE you must select your hardware colour combination. If your colour combination is not present in the list, please let me know.
RULES:
- source image must use some (or all) of the four color that you select in the "color combination" dropdown.
For example if you select RG your image must use only the RED, GREEN, YELLOW, BLACK colours - there is a big tollerance in colors. your pixel values will be rounded to 255. For example if your pixel have RED value > 127 the tool will converts the value to 255 and sets the RED bit to one
OPTIONS:
- you can split your image in multiple sprites using the *sprite height* option
- *sprites height*, if given, must be the same for all sprites
- there must be only one sprite for each line (no sprite grid)
INPUT:
source image:color combination:
output number format: decimal binary hexadecimal
generate data as a single line
sprite height: (zero if there are only one sprite)
output variable name: