Method: ColorContrastCalc::ColorFunctionParser::ColorFunction#to_a

Defined in:
lib/color_contrast_calc/color_function_parser.rb

#to_aArray<Integer, Float>

Return the parameters of a RGB/HSL/HWB function as an array of Integer/Float. The unit for H, S, L is assumed to be deg, %, % respectively.

Returns:

  • (Array<Integer, Float>)

    RGB/HSL/HWB value represented as an array



239
240
241
# File 'lib/color_contrast_calc/color_function_parser.rb', line 239

def to_a
  @normalized
end