charset2png
c64tools - charset2png - Extracts a character set at a given address from a given memory dump.
Arguments
- INPUT_FILE: the memory dump to load
- ADDRESS: the address to extract the character set from
Options
- --output/-o FILE: the name of the file to save the charset image into
- --number/-n INT: the number of characters to extract (default: 256)
- --pattern/-p PATTERN: defines the pattern of the character set
- --width/-w WIDTH: sets the width of the image in chars (default: 32)
- --divider/-d INT: sets the height of the dividing empty space between line (default: 4)
- --inverse/-i__: invert the characters
- --background/-b COLOR: sets the background color, default: #000000
- --foreground/-c COLOR: sets the foreground color, default: #ffffff
- --multicolor1/-1 COLOR: sets the multi color 1, default: #c0c0c0
- --multicolor2/-2 COLOR: sets the multi color 2, default: #808080
- --multicolor/-m__: use multicolor mode
- --show/-s__: Show the result after conversion
- -h, --help: show a help screen
- --version: show program's version number and exit
convert_color(color)
Converts a given hex color, optionally lead by a '#', into an RGB tuple.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
color |
string
|
The hex color string |
required |
Returns:
Type | Description |
---|---|
Tuple[int, int, int]
|
The converted color |
main(arguments=None)
Loads the memory dump, extracts the character set saves its display and shows it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
arguments |
List[str]
|
The command line arguments |
None
|
- charset2png
- convert_color
- main
Table of contents