diff --git a/adafruit_led_animation/animation/comet.py b/adafruit_led_animation/animation/comet.py index f61969c..0d13cf9 100644 --- a/adafruit_led_animation/animation/comet.py +++ b/adafruit_led_animation/animation/comet.py @@ -94,7 +94,7 @@ def __init__( def _recompute_color(self, color): pass - def __recompute_color(self, color): + def _comet_recompute_color(self, color): self._comet_colors = [BLACK] + [ [ int(color[rgb] * ((n * self._color_step) + self._color_offset)) @@ -115,7 +115,7 @@ def _comet_generator(self): cycle_passes = 0 while True: if self._color != self._computed_color or not self._comet_colors: - self.__recompute_color(self._color) + self._comet_recompute_color(self._color) colors = self._reverse_comet_colors if self.reverse else self._comet_colors for start in self._get_range(num_pixels): diff --git a/adafruit_led_animation/animation/rainbowcomet.py b/adafruit_led_animation/animation/rainbowcomet.py index 01c65cc..785b795 100644 --- a/adafruit_led_animation/animation/rainbowcomet.py +++ b/adafruit_led_animation/animation/rainbowcomet.py @@ -84,7 +84,7 @@ def _calc_brightness(self, n, color): color = (color & 0xFF, ((color & 0xFF00) >> 8), (color >> 16)) return [int(i * brightness) for i in color] - def __recompute_color(self, color): + def _comet_recompute_color(self, color): factor = int(256 / self._tail_length) self._comet_colors = [BLACK] + [ self._calc_brightness(