fromString

fun fromString(value: String): TileColor

Parses a string into a color. Formats:

  • blue - Constant value from the ANSITileColor enum

  • #1a1a1a - Hash character followed by three hex-decimal tuples; creates a DefaultTileColor color entry by parsing the tuples as Red, Green and Blue.

Sources

(source)
Link copied to clipboard