Parse the string and create a new color.
Supported formats: '#rrggbb', '#rgb', and 'rgb(r,g,b)'.
If the string is not...
Parse the string and create a new color.
Supported formats: '#rrggbb', '#rgb', and 'rgb(r,g,b)'.
If the string is not recognized, an undefined will be returned instead.
Parameters
- str : String
Color in string.
Returns