Module colorizer.parser.rgba_hex

Helper function to parse argb

Functions

parser.rgba_hex_parser (line, i, opts) parse for #rrggbbaa and return rgb hex.


Functions

parser.rgba_hex_parser (line, i, opts)
parse for #rrggbbaa and return rgb hex. a format used in android apps

Parameters:

  • line string: line to parse
  • i number: index of line from where to start parsing
  • opts table: Containing minlen, maxlen, valid_lengths

Returns:

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