invoke

operator fun invoke(color: String): HEXAColor(source)

Parsing color from color

Supported formats samples (on Red color based):

  • #f00

  • #ff0000

  • #ff0000ff

  • rgb(255, 0, 0)

  • rgba(255, 0, 0, 1)