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:
  • bitmap (Bitmap) –

    the c64 bitmap to charpack

  • ret (Tuple[List[Char], Screen], default: None ) –

    optional charpack result for continuing

Returns:
  • 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:
  • arguments (List[str], default: None ) –

    The command line arguments