Charpacker

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 instance) –

    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

Options

  • --file/-f <IMAGE_FILE_TO_LOAD>: the image to charpack
  • --screen-output/-s <SCREEN_OUTPUT_FILENAME>: the name of the file to write the screen to
  • --charset-output/-c <CHARSET_OUTPUT_FILENAME>: the name of the file to write the charset