hexToRgb

val String.hexToRgb: Triple<UByte, UByte, UByte>?

Convert String HEX color to RGB color.

Example:

"#000000".hexToRgb() // (0, 0, 0)
"#FFFFFF".hexToRgb() // (255, 255 255)

Since

1.1.0

Return

Triple of red, green and blue values.