Skip to content

Commit

Permalink
Merge pull request #70 from vanicat/development
Browse files Browse the repository at this point in the history
Default color of text in tiled is black, not white
  • Loading branch information
Cleptomania authored Jul 2, 2024
2 parents 315a1ea + 5a9458f commit 0d15349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytiled_parser/tiled_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 0d15349

Please sign in to comment.