CharacterImage
CharacterImage(character_width, character_height, filename=None, image=None, palette=None, additional_palette=None, pixel_size=None)
Access characters from an image.
| PARAMETER | DESCRIPTION |
|---|---|
character_width
|
width of a character in pixels
TYPE:
|
character_height
|
height of a character in pixels
TYPE:
|
filename
|
filename of image to load
TYPE:
|
image
|
image to use
TYPE:
|
palette
|
Palette to use
TYPE:
|
additional_palette
|
additional colors to add to palette
TYPE:
|
pixel_size
|
size of logical pixels
TYPE:
|
get(index)
Get character at given index.
| PARAMETER | DESCRIPTION |
|---|---|
index
|
index of character to get
TYPE:
|
Returns: bytes of character, or None if character is a hole
get_xy(x, y)
Get character at given coordinates.
| PARAMETER | DESCRIPTION |
|---|---|
x
|
x coordinate of character to get
TYPE:
|
y
|
y coordinate of character to get
TYPE:
|
Returns: bytes of character, or None if character is a hole