From: Melissa LeBlanc-Williams Date: Tue, 16 Jun 2020 17:42:17 +0000 (-0700) Subject: Remove extra rgba property from ColorConverter X-Git-Tag: 0.3.0^2 X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/commitdiff_plain/efaf6062f9f5c55fba6d15f4702913d330332c98?ds=inline;hp=-c Remove extra rgba property from ColorConverter --- efaf6062f9f5c55fba6d15f4702913d330332c98 diff --git a/displayio/colorconverter.py b/displayio/colorconverter.py index a93da2d..f853653 100644 --- a/displayio/colorconverter.py +++ b/displayio/colorconverter.py @@ -135,16 +135,3 @@ class ColorConverter: if not isinstance(value, bool): raise ValueError("Value should be boolean") self._dither = value - - @property - def rgba(self): - """When true the color converter returns a 4-value - RGBA tuple rather than an integer - """ - return self._rgba - - @rgba.setter - def rgba(self, value): - if not isinstance(value, bool): - raise ValueError("Value should be boolean") - self._rgba = value diff --git a/displayio/tilegrid.py b/displayio/tilegrid.py index 2536af5..7308342 100644 --- a/displayio/tilegrid.py +++ b/displayio/tilegrid.py @@ -88,7 +88,7 @@ class TileGrid: raise ValueError("Unsupported Pixel Shader type") self._pixel_shader = pixel_shader if isinstance(self._pixel_shader, ColorConverter): - self._pixel_shader.rgba = True + self._pixel_shader._rgba = True # pylint: disable=protected-access self._hidden = False self._x = x self._y = y