diff --git a/trap/animation_renderer.py b/trap/animation_renderer.py index 58eddd4..c968d03 100644 --- a/trap/animation_renderer.py +++ b/trap/animation_renderer.py @@ -170,9 +170,6 @@ class AnimationRenderer: - - self.init_shapes() - self.init_labels() @@ -200,52 +197,6 @@ class AnimationRenderer: ) # return process - - - def init_shapes(self): - ''' - Due to error when running headless, we need to configure options before extending the shapes class - ''' - class GradientLine(shapes.Line): - def __init__(self, x, y, x2, y2, width=1, color1=[255,255,255], color2=[255,255,255], batch=None, group=None): - # print('colors!', colors) - # assert len(colors) == 6 - - r, g, b, *a = color1 - self._rgba1 = (r, g, b, a[0] if a else 255) - r, g, b, *a = color2 - self._rgba2 = (r, g, b, a[0] if a else 255) - - # print('rgba', self._rgba) - - super().__init__(x, y, x2, y2, width, color1, batch=None, group=None) - #