Merge pull request #588 from jedgarpark/pyportal-astronauts-tweaks

tweaks to text position, bg brightness
This commit is contained in:
Kattni 2019-03-27 17:30:45 -04:00 committed by GitHub
commit 00ecb0c3ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -23,13 +23,13 @@ pyportal = PyPortal(url=DATA_SOURCE,
status_neopixel=board.NEOPIXEL,
default_bg=cwd+"/astronauts_background.bmp",
text_font=cwd+"/fonts/Helvetica-Bold-100.bdf",
text_position=((180, 70), None),
text_position=((225, 50), None),
text_color=(0xFFFFFF, None))
names_font = bitmap_font.load_font(cwd+"/fonts/Helvetica-Bold-16.bdf")
# pre-load glyphs for fast printing
names_font.load_glyphs(b'abcdefghjiklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ- ()')
names_position = (100, 175)
names_position = (10, 135)
names_color = 0xFF00FF
while True:

BIN
PyPortal_Astronauts/astronauts_background.bmp Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB