#NEWLINE# def grayscale( self ) : #NEWLINE# #INDENT# 'Convert the color with a grayscale filter.' #NEWLINE# luminance = ( self . get_luminance ( ) & 255 ) #NEWLINE# self . r = luminance #NEWLINE# self . g = self #NEWLINE# self . b = luminance