Skip to content

Commit

Permalink
Update colors used for version string on title screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mike8699 committed Mar 16, 2024
1 parent 94801cd commit 8eb78b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions base/data/_title_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ def insert_title_screen(
# draw rectangle to go behind text
draw.rectangle(
(x - 4, y - 2, x + text_width + 3, y + text_height),
fill=(255, 239, 82),
fill=(209, 36, 37),
)

# draw text
draw.text((x, y), version_string, fill=(214, 41, 41), stroke_width=4, stroke_fill=(0, 0, 0))
draw.text((x, y), version_string, fill=(20, 68, 115), stroke_width=4, stroke_fill=(0, 0, 0))

image_data = AutoList()
palette_data: list[tuple[int, int, int]] = []
Expand All @@ -72,7 +72,9 @@ def insert_title_screen(
palette_data.append(px)
image_data[y * 256 + x] = len(palette_data) - 1

assert len(palette_data) <= 256, 'Error: image contains more than 256 colors'
assert (
len(palette_data) <= 256
), f'Error: image contains more than 256 colors ({len(palette_data)})'

narc_file.setFileByName('title.ntft', bytes(image_data))
# Divide by 8 b/c RGB values are off by a factor of 8 in ndspy 4.0.0 for some reason
Expand Down

0 comments on commit 8eb78b1

Please sign in to comment.