Table of Contents

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 string

3 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 string

3 or 6 hex digits (with or without # as the first character).

terminalColorCode byte

Optional 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

r byte

Red value.

g byte

Green value.

b byte

Blue value.

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)

Parameters

r byte

Red value.

g byte

Green value.

b byte

Blue value.

terminalColorCode byte

Optional terminal code.