Module colorizer.parser.hsl

Helper function to parse argb

Functions

parser.hsl_function_parser (line, i, opts) Parse for hsl() hsla() css function and return rgb hex.


Functions

parser.hsl_function_parser (line, i, opts)
Parse for hsl() hsla() css function and return rgb hex. For more info: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl

Parameters:

  • line string: Line to parse
  • i number: Index of line from where to start parsing
  • opts table: Values passed from matchers like prefix

Returns:

  1. number|nil: Index of line where the hsla/hsl function ended
  2. string|nil: rgb hex value
generated by LDoc 1.4.6 Last updated - February