#NEWLINE# def only_colorblock( self ) : #NEWLINE# #INDENT# 'This finds the nearest color based on block system, only works\n        for 17-232 color values.' #NEWLINE# rint = min ( range ( len ( _normals ) ) , key = [ abs ( ( x - self . r ) ) for x in _normals ] . __getitem__ ) #NEWLINE# bint = min ( range ( len ( _normals ) ) , key = [ abs ( ( bint - self . b ) ) for x in _normals ] . __getitem__ ) #NEWLINE# gint = min ( range ( len ( _normals ) ) , key = [ abs ( ( x - self . g ) ) for x in _normals ] . __getitem__ ) #NEWLINE# return ( ( ( 16 + ( 36 * rint ) ) + ( 6 * gint ) ) + bint )