Skip to content

Commit 597f2b8

Browse files
committed
Add experimental rgb and rgba attributes to Console.
I want to test using these names for this attribute but don't want to officially add another name for the same thing until I know these work well in practice.
1 parent 6ccbb3a commit 597f2b8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tcod/console.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,16 @@ def tiles2(self) -> np.ndarray:
294294
"""
295295
return self.tiles_rgb
296296

297+
@property
298+
def rgba(self) -> np.ndarray:
299+
# This attribute is provisional and may be changed at anytime.
300+
return self.tiles
301+
302+
@property
303+
def rgb(self) -> np.ndarray:
304+
# This attribute is provisional and may be changed at anytime.
305+
return self.tiles_rgb
306+
297307
@property
298308
def default_bg(self) -> Tuple[int, int, int]:
299309
"""Tuple[int, int, int]: The default background color."""

0 commit comments

Comments
 (0)