Method: ColorContrastCalc::ColorFunctionParser::ColorFunction#rgb

Defined in:
lib/color_contrast_calc/color_function_parser.rb

#rgbArray<Integer>

Return the RGB value gained from a RGB/HSL/HWB function.

Returns:

  • (Array<Integer>)

    RGB value represented as an array

Raises:

  • (NotImplementedError)


227
228
229
# File 'lib/color_contrast_calc/color_function_parser.rb', line 227

def rgb
  raise NotImplementedError, 'Overwrite the method in a subclass'
end