Constructor Color
- Namespace
- Sccg
- Assembly
- Sccg.dll
Color(string)
Initialize a new instance of Color with the specified hex code.
public Color(string hexCode)
Parameters
hexCode
string3 or 6 hex digits (with or without # as the first character).
Exceptions
- ArgumentException
hexCode
is invalid hex code style.
Color(string, byte)
Initialize a new instance of Color with the specified hex code and terminal color code.
public Color(string hexCode, byte terminalColorCode)
Parameters
hexCode
string3 or 6 hex digits (with or without # as the first character).
terminalColorCode
byteOptional terminal code.
Color(byte, byte, byte)
Initialize a new instance of Color with the specified RGB values.
public Color(byte r, byte g, byte b)
Parameters
Color(byte, byte, byte, byte)
Initialize a new instance of Color with the specified RGB values and terminal color code.
public Color(byte r, byte g, byte b, byte terminalColorCode)