rgbaToColor

Convert an rgba(...) or rgb(...) 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

Parameters

value

the String representation of rgba or rgb.