From 5a9458f80670e8dd885e82c711d8a50eeef76630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Tue, 11 Jul 2023 10:55:11 +0200 Subject: [PATCH] Default color of text in tiled is black, not white --- pytiled_parser/tiled_object.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytiled_parser/tiled_object.py b/pytiled_parser/tiled_object.py index edf7495f..ac953ad3 100644 --- a/pytiled_parser/tiled_object.py +++ b/pytiled_parser/tiled_object.py @@ -104,7 +104,7 @@ class Text(TiledObject): Attributes: text: The text to display - color: Color of the text. (default: (255, 255, 255, 255)) + color: Color of the text. (default: (0, 0, 0, 255)) font_family: The font family used (default: "sans-serif") font_size: The size of the font in pixels. (default: 16) bold: Whether the font is bold. (default: False) @@ -119,7 +119,7 @@ class Text(TiledObject): """ text: str - color: Color = Color(255, 255, 255, 255) + color: Color = Color(0, 0, 0, 255) font_family: str = "sans-serif" font_size: float = 16