colorFromString

Create a color from a string.

  1. Color colorFromString(const(char)[] str)
    pure @safe
    Color
    colorFromString
    (
    Color = RGB8
    )
    (
    scope const(char)[] str
    )
  2. bool colorFromString(const(char)[] str, Color color)

Return Value

Type: Color

The _color expressed by the string.

Throws

Throws std.conv.ConvException if the string is invalid.

Meta