C# Class SVGColorExtractor, UnitySVG

Show file Open project: MrJoy/UnitySVG Class Usage Examples

Public Properties

Property Type Description
ConstantColors Color>.Dictionary

Public Methods

Method Description
ConstColor ( string name ) : Color
HexColor ( string colorStr ) : Color
IsConstName ( string textColor ) : bool
IsHexColor ( string colorStr ) : bool

Private Methods

Method Description
ParseHexDigit ( char c ) : int
change ( int r, int g, int b ) : Color

Method Details

ConstColor() public static method

public static ConstColor ( string name ) : Color
name string
return Color

HexColor() public static method

public static HexColor ( string colorStr ) : Color
colorStr string
return Color

IsConstName() public static method

public static IsConstName ( string textColor ) : bool
textColor string
return bool

IsHexColor() public static method

public static IsHexColor ( string colorStr ) : bool
colorStr string
return bool

Property Details

ConstantColors public static property

public static Dictionary ConstantColors
return Color>.Dictionary