colorFromString

@Nullable()
public static @Nullable() Color colorFromString(@Nullable() @Nullable() String color)

Parse a color from a string. Formats: #RRGGBB; R,G,B

Return

The color, if the string can't be parsed, null is returned

Parameters

color

The string