function hexToRgb (shared-side)
Available since version: 0.3.0
Convert a hex color string to an RGB table.
Declaration
{r, g, b}|nil hexToRgb(string hex)
Parameters
stringhex: Hex color string (e.g. "#RRGGBB", "0xRRGGBB", or "RGB").
Returns {r, g, b}|nil
Table containing r, g, b components or nil on failure.