Click or drag to resize
Ab4d.SharpEngine logo

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.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static Color3 Parse(
	string colorText
)

Parameters

colorText  String
color text as hex color (#RRGGBB or #RGB) or color name (Red)

Return Value

Color3
color that was parsed from the color text
See Also