charpacker
c64tools - charpacker - A char packer.
Loads an image and charpacks it. Saves optionally the screen and the character data. Shows the result.
Arguments
- IMAGE_FILE: the image to load and charpack
Options
- --screen-output/-S OUTPUT_FILE: the name of the file to save the screen at
- --charset-output/-C OUTPUT_FILE: the name of the file to save the charset at
- -h, --help: show a help screen
- --version: show program's version number and exit
charpack(bitmap, ret=None)
Charpacks a given bitmap
It is possible to continue a charpacking by supporting a tuple of a character list and a screen as the second parameter.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bitmap |
Bitmap
|
the c64 bitmap to charpack |
required |
ret |
Tuple[List[Char], Screen]
|
optional charpack result for continuing |
None
|
Returns:
Type | Description |
---|---|
Tuple[List[Char], Screen]
|
The obtained characters and the screen |
main(arguments=None)
Loads an image file, charpacks it, saves the obtained screen and character set and shows the original image, its bitmap representation, and the charpacking result.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
arguments |
List[str]
|
The command line arguments |
None
|
- charpacker
- charpack
- main
Table of contents