def test_color_pack2rgb(pack, res): """Unit test for color_pack2rgb""" assert color_pack2rgb(pack) == res
def _get_background_color(self): """Returns background color rgb tuple of right line""" color = self.cell_attributes[self.key]["bgcolor"] return tuple(c / 255.0 for c in color_pack2rgb(color))
def _get_text_color(self): """Returns text color rgb tuple of right line""" color = self.code_array.cell_attributes[self.key]["textcolor"] return tuple(c / 255.0 for c in color_pack2rgb(color))
def _get_right_line_color(self): """Returns color rgb tuple of right line""" color = self.cell_attributes[self.key]["bordercolor_right"] return tuple(c / 255.0 for c in color_pack2rgb(color))