Parses value into a Color instance. When another color instance is provided, it is cloned.
Optional
The value to parse.
The parsed color, or black color if value is invalid.
Color.parse
Creates a new gradient.
The optional list of colors that comprise the gradient. Stop position for each color is set to its index in the array.
Parses value into a Color instance. When another color instance is provided, it is cloned.