(self, attr)
return fore_rgb, back_rgb, blink, underline
Convert colour attribute to RGB/blink/underline, given a palette.
Convert colour attribute to RGB/blink/underline, given a palette.
Convert colour attribute to RGB / blink / underline given a palette .
def attr_to_rgb(self, attr):
        """Convert colour attribute to RGB/blink/underline, given a palette."""
        fore, back, blink, underline = self.split_attr(attr)
        # palette is ignored
        fore_rgb = _adjust_tint(self._colours[fore], self._mono_tint, self._mono)
        back_rgb = _adjust_tint(self._colours[back], self._mono_tint, self._mono)
        return fore_rgb, back_rgb, blink, underline
def attr_to_rgb ( self , attr ) : fore , back , blink , underline = self . split_attr ( attr ) # palette is ignored fore_rgb = _adjust_tint ( self . _colours [ fore ] , self . _mono_tint , self . _mono ) back_rgb = _adjust_tint ( self . _colours [ back ] , self . _mono_tint , self . _mono ) return fore_rgb , back_rgb , blink , underline