 |
Color3Parse Method |
Parse method returns the color that was parsed from the color text.
If the text cannot be parsed a FormatException is thrown (use
TryParse(String, Color3) if you do not want to get an exception).
When the color text starts with hash character (#), then the color is specified as a hex value in format RRGGBB or RGB, for example #FF0000 or #F00 for red color.
Otherwise the color text should be one of the color names from the known colors defined in the
Colors class. The name can be in any case.
Namespace: Ab4d.SharpEngine.CommonAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic static Color3 Parse(
string colorText
)
Parameters
- colorText String
- color text as hex color (#RRGGBB or #RGB) or color name (Red)
Return Value
Color3color that was parsed from the color text
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Common.Color3.Parse(System.String)"]
See Also