hex

fun hex(value: String): <Error class: unknown class>

Parses a hex color literal (#rgb, #rgba, #rrggbb, or #rrggbbaa) into a Color.Hex.

The leading # is required.

Return

the parsed Color.Hex.

Parameters

value

a hex literal beginning with #.

Throws

IllegalStateException

if value is not a valid #... hex literal.