rgbaToColor

open fun rgbaToColor(@NonNull value: String): Int

Convert an rgba string to a Color int.

R, G, B color components have to be in the [0-255] range, while alpha has to be in the [0.0-1.0] range. For example: "rgba(255, 128, 0, 0.7)".

Return

the int representation of rgba

Parameters

value

the String representation of rgba

Throws

on illegal input