def grayscale(self):

        luminance = self.get_luminance() & 0xFF
        self.r = luminance
        self.g = luminance
        self.b = luminance
Convert the color with a grayscale filter.
dataset/ETHPy150Open facelessuser/ColorHelper/lib/rgba.py/RGBA.grayscale