Module: ColorContrastCalc::InvalidColorRepresentationError::Template
- Defined in:
- lib/color_contrast_calc/invalid_color_representation_error.rb
Constant Summary collapse
- RGB =
'An RGB value should be in form of [r, g, b], but %s.'
- RGBA =
<<~RGBA_MESSAGE An RGB value should be in form of [r, g, b, opacity] (r, g, b should be in the range between 0 and 255), but %s. RGBA_MESSAGE
- COLOR_NAME =
'%s seems to be an undefined color name.'
- HEX =
'A hex code #xxxxxx where 0 <= x <= f is expected, but %s.'
- UNEXPECTED =
'A color should be given as an array or string, but %s.'