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:
- number|nil: index of line where the hex value ended
- string|nil: rgb hex value