parameters: (self)
return_statement: return clamp(round_int(0.299 * self.r + 0.587 * self.g + 0.114 * self.b), 0, 255)
docstring: Get percieved luminance.
docstring_summary: Get percieved luminance.
docstring_tokens: Get percieved luminance .
function: def get_luminance(self):
          """Get percieved luminance."""
  
          return clamp(round_int(0.299 * self.r + 0.587 * self.g + 0.114 * self.b), 0, 255)
function_tokens: def get_luminance ( self ) : return clamp ( round_int ( 0.299 * self . r + 0.587 * self . g + 0.114 * self . b ) , 0 , 255 )