parseHex

fun parseHex(hex: String?): Int?

Parses #rgb, #rrggbb or #rrggbbaa into ARGB; null when malformed.