(self, attr)
return fore_rgb, back_rgb, fore != back, False
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 = self._pseudocolours[self._palette[attr] % len(self._pseudocolours)]
        # intensity 0, 1, 2 to RGB; apply mono tint
        fore_rgb = _adjust_tint(self._colours[fore], self._mono_tint, self._mono)
        back_rgb = _adjust_tint(self._colours[back], self._mono_tint, self._mono)
        # fore, back, blink, underline
        return fore_rgb, back_rgb, fore != back, False
def attr_to_rgb ( self , attr ) : fore , back = self . _pseudocolours [ self . _palette [ attr ] % len ( self . _pseudocolours ) ] # intensity 0, 1, 2 to RGB; apply mono tint fore_rgb = _adjust_tint ( self . _colours [ fore ] , self . _mono_tint , self . _mono ) back_rgb = _adjust_tint ( self . _colours [ back ] , self . _mono_tint , self . _mono ) # fore, back, blink, underline return fore_rgb , back_rgb , fore != back , False