Skip to content

Commit 34170c1

Browse files
add bitmap palette property
1 parent 7ef6deb commit 34170c1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cedargrove_waveviz.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,14 @@ def __init__(
7979

8080
@property
8181
def bitmap(self):
82-
"""The resultant bitmap."""
82+
"""The resultant bitmap object."""
8383
return self._bmp
8484

85+
@property
86+
def palette(self):
87+
"""The resultant displayio.Palette object."""
88+
return self._palette
89+
8590
def _plot_wave(self):
8691
"""Plot the wave_table as a bitmap."""
8792
samples = len(self._wave_table)

0 commit comments

Comments
 (0)