Table of Contents

CliColor Struct

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

Represents a color.

public readonly struct CliColor : IEquatable<CliColor>
Implements

Constructors

CliColor(byte, byte, byte)

Initializes a new instance of the CliColor struct.

Properties

Aqua

Gets the color "Aqua" (RGB 0,255,255).

Aquamarine1

Gets the color "Aquamarine1" (RGB 95,255,215).

Aquamarine1_1

Gets the color "Aquamarine1_1" (RGB 135,255,215).

Aquamarine3

Gets the color "Aquamarine3" (RGB 95,215,175).

B

Gets the blue component.

Black

Gets the color "Black" (RGB 0,0,0).

Blue

Gets the color "Blue" (RGB 0,0,255).

Blue1

Gets the color "Blue1" (RGB 0,0,255).

Blue3

Gets the color "Blue3" (RGB 0,0,175).

Blue3_1

Gets the color "Blue3_1" (RGB 0,0,215).

BlueViolet

Gets the color "BlueViolet" (RGB 95,0,255).

CadetBlue

Gets the color "CadetBlue" (RGB 95,175,135).

CadetBlue_1

Gets the color "CadetBlue_1" (RGB 95,175,175).

Chartreuse1

Gets the color "Chartreuse1" (RGB 135,255,0).

Chartreuse2

Gets the color "Chartreuse2" (RGB 95,255,0).

Chartreuse2_1

Gets the color "Chartreuse2_1" (RGB 135,215,0).

Chartreuse3

Gets the color "Chartreuse3" (RGB 95,175,0).

Chartreuse3_1

Gets the color "Chartreuse3_1" (RGB 95,215,0).

Chartreuse4

Gets the color "Chartreuse4" (RGB 95,135,0).

CornflowerBlue

Gets the color "CornflowerBlue" (RGB 95,135,255).

Cornsilk1

Gets the color "Cornsilk1" (RGB 255,255,215).

Cyan

Gets the color "Cyan" (RGB 0,255,255).

Cyan1

Gets the color "Cyan1" (RGB 0,255,255).

Cyan2

Gets the color "Cyan2" (RGB 0,255,215).

Cyan3

Gets the color "Cyan3" (RGB 0,215,175).

DarkBlue

Gets the color "DarkBlue" (RGB 0,0,135).

DarkCyan

Gets the color "DarkCyan" (RGB 0,175,135).

DarkGoldenrod

Gets the color "DarkGoldenrod" (RGB 175,135,0).

DarkGreen

Gets the color "DarkGreen" (RGB 0,95,0).

DarkKhaki

Gets the color "DarkKhaki" (RGB 175,175,95).

DarkMagenta

Gets the color "DarkMagenta" (RGB 135,0,135).

DarkMagenta_1

Gets the color "DarkMagenta_1" (RGB 135,0,175).

DarkOliveGreen1

Gets the color "DarkOliveGreen1" (RGB 215,255,95).

DarkOliveGreen1_1

Gets the color "DarkOliveGreen1_1" (RGB 215,255,135).

DarkOliveGreen2

Gets the color "DarkOliveGreen2" (RGB 175,255,95).

DarkOliveGreen3

Gets the color "DarkOliveGreen3" (RGB 135,175,95).

DarkOliveGreen3_1

Gets the color "DarkOliveGreen3_1" (RGB 135,215,95).

DarkOliveGreen3_2

Gets the color "DarkOliveGreen3_2" (RGB 175,215,95).

DarkOrange

Gets the color "DarkOrange" (RGB 255,135,0).

DarkOrange3

Gets the color "DarkOrange3" (RGB 175,95,0).

DarkOrange3_1

Gets the color "DarkOrange3_1" (RGB 215,95,0).

DarkRed

Gets the color "DarkRed" (RGB 95,0,0).

DarkRed_1

Gets the color "DarkRed_1" (RGB 135,0,0).

DarkSeaGreen

Gets the color "DarkSeaGreen" (RGB 135,175,135).

DarkSeaGreen1

Gets the color "DarkSeaGreen1" (RGB 175,255,215).

DarkSeaGreen1_1

Gets the color "DarkSeaGreen1_1" (RGB 215,255,175).

DarkSeaGreen2

Gets the color "DarkSeaGreen2" (RGB 175,215,175).

DarkSeaGreen2_1

Gets the color "DarkSeaGreen2_1" (RGB 175,255,175).

DarkSeaGreen3

Gets the color "DarkSeaGreen3" (RGB 135,215,175).

DarkSeaGreen3_1

Gets the color "DarkSeaGreen3_1" (RGB 175,215,135).

DarkSeaGreen4

Gets the color "DarkSeaGreen4" (RGB 95,135,95).

DarkSeaGreen4_1

Gets the color "DarkSeaGreen4_1" (RGB 95,175,95).

DarkSlateGray1

Gets the color "DarkSlateGray1" (RGB 135,255,255).

DarkSlateGray2

Gets the color "DarkSlateGray2" (RGB 95,255,255).

DarkSlateGray3

Gets the color "DarkSlateGray3" (RGB 135,215,215).

DarkTurquoise

Gets the color "DarkTurquoise" (RGB 0,215,215).

DarkViolet

Gets the color "DarkViolet" (RGB 135,0,215).

DarkViolet_1

Gets the color "DarkViolet_1" (RGB 175,0,215).

DeepPink1

Gets the color "DeepPink1" (RGB 255,0,135).

DeepPink1_1

Gets the color "DeepPink1_1" (RGB 255,0,175).

DeepPink2

Gets the color "DeepPink2" (RGB 255,0,95).

DeepPink3

Gets the color "DeepPink3" (RGB 215,0,95).

DeepPink3_1

Gets the color "DeepPink3_1" (RGB 215,0,135).

DeepPink4

Gets the color "DeepPink4" (RGB 95,0,95).

DeepPink4_1

Gets the color "DeepPink4_1" (RGB 135,0,95).

DeepPink4_2

Gets the color "DeepPink4_2" (RGB 175,0,95).

DeepSkyBlue1

Gets the color "DeepSkyBlue1" (RGB 0,175,255).

DeepSkyBlue2

Gets the color "DeepSkyBlue2" (RGB 0,175,215).

DeepSkyBlue3

Gets the color "DeepSkyBlue3" (RGB 0,135,175).

DeepSkyBlue3_1

Gets the color "DeepSkyBlue3_1" (RGB 0,135,215).

DeepSkyBlue4

Gets the color "DeepSkyBlue4" (RGB 0,95,95).

DeepSkyBlue4_1

Gets the color "DeepSkyBlue4_1" (RGB 0,95,135).

DeepSkyBlue4_2

Gets the color "DeepSkyBlue4_2" (RGB 0,95,175).

Default

Gets the default color.

DodgerBlue1

Gets the color "DodgerBlue1" (RGB 0,135,255).

DodgerBlue2

Gets the color "DodgerBlue2" (RGB 0,95,255).

DodgerBlue3

Gets the color "DodgerBlue3" (RGB 0,95,215).

Fuchsia

Gets the color "Fuchsia" (RGB 255,0,255).

G

Gets the green component.

Gold1

Gets the color "Gold1" (RGB 255,215,0).

Gold3

Gets the color "Gold3" (RGB 175,175,0).

Gold3_1

Gets the color "Gold3_1" (RGB 215,175,0).

Gray

Gets the color "Gray" (RGB 128,128,128).

Gray0

Gets the color "Gray0" (RGB 0,0,0).

Gray100

Gets the color "Gray100" (RGB 255,255,255).

Gray11

Gets the color "Gray11" (RGB 28,28,28).

Gray15

Gets the color "Gray15" (RGB 38,38,38).

Gray19

Gets the color "Gray19" (RGB 48,48,48).

Gray23

Gets the color "Gray23" (RGB 58,58,58).

Gray27

Gets the color "Gray27" (RGB 68,68,68).

Gray3

Gets the color "Gray3" (RGB 8,8,8).

Gray30

Gets the color "Gray30" (RGB 78,78,78).

Gray35

Gets the color "Gray35" (RGB 88,88,88).

Gray37

Gets the color "Gray37" (RGB 95,95,95).

Gray39

Gets the color "Gray39" (RGB 98,98,98).

Gray42

Gets the color "Gray42" (RGB 108,108,108).

Gray46

Gets the color "Gray46" (RGB 118,118,118).

Gray50

Gets the color "Gray50" (RGB 128,128,128).

Gray53

Gets the color "Gray53" (RGB 135,135,135).

Gray54

Gets the color "Gray54" (RGB 138,138,138).

Gray58

Gets the color "Gray58" (RGB 148,148,148).

Gray62

Gets the color "Gray62" (RGB 158,158,158).

Gray63

Gets the color "Gray63" (RGB 175,135,175).

Gray66

Gets the color "Gray66" (RGB 168,168,168).

Gray69

Gets the color "Gray69" (RGB 175,175,175).

Gray7

Gets the color "Gray7" (RGB 18,18,18).

Gray70

Gets the color "Gray70" (RGB 178,178,178).

Gray74

Gets the color "Gray74" (RGB 188,188,188).

Gray78

Gets the color "Gray78" (RGB 198,198,198).

Gray82

Gets the color "Gray82" (RGB 208,208,208).

Gray84

Gets the color "Gray84" (RGB 215,215,215).

Gray85

Gets the color "Gray85" (RGB 218,218,218).

Gray89

Gets the color "Gray89" (RGB 228,228,228).

Gray93

Gets the color "Gray93" (RGB 238,238,238).

Green

Gets the color "Green" (RGB 0,128,0).

Green1

Gets the color "Green1" (RGB 0,255,0).

Green3

Gets the color "Green3" (RGB 0,175,0).

Green3_1

Gets the color "Green3_1" (RGB 0,215,0).

Green4

Gets the color "Green4" (RGB 0,135,0).

GreenYellow

Gets the color "GreenYellow" (RGB 175,255,0).

Grey

Gets the color "Grey" (RGB 128,128,128).

Grey0

Gets the color "Grey0" (RGB 0,0,0).

Grey100

Gets the color "Grey100" (RGB 255,255,255).

Grey11

Gets the color "Grey11" (RGB 28,28,28).

Grey15

Gets the color "Grey15" (RGB 38,38,38).

Grey19

Gets the color "Grey19" (RGB 48,48,48).

Grey23

Gets the color "Grey23" (RGB 58,58,58).

Grey27

Gets the color "Grey27" (RGB 68,68,68).

Grey3

Gets the color "Grey3" (RGB 8,8,8).

Grey30

Gets the color "Grey30" (RGB 78,78,78).

Grey35

Gets the color "Grey35" (RGB 88,88,88).

Grey37

Gets the color "Grey37" (RGB 95,95,95).

Grey39

Gets the color "Grey39" (RGB 98,98,98).

Grey42

Gets the color "Grey42" (RGB 108,108,108).

Grey46

Gets the color "Grey46" (RGB 118,118,118).

Grey50

Gets the color "Grey50" (RGB 128,128,128).

Grey53

Gets the color "Grey53" (RGB 135,135,135).

Grey54

Gets the color "Grey54" (RGB 138,138,138).

Grey58

Gets the color "Grey58" (RGB 148,148,148).

Grey62

Gets the color "Grey62" (RGB 158,158,158).

Grey63

Gets the color "Grey63" (RGB 175,135,175).

Grey66

Gets the color "Grey66" (RGB 168,168,168).

Grey69

Gets the color "Grey69" (RGB 175,175,175).

Grey7

Gets the color "Grey7" (RGB 18,18,18).

Grey70

Gets the color "Grey70" (RGB 178,178,178).

Grey74

Gets the color "Grey74" (RGB 188,188,188).

Grey78

Gets the color "Grey78" (RGB 198,198,198).

Grey82

Gets the color "Grey82" (RGB 208,208,208).

Grey84

Gets the color "Grey84" (RGB 215,215,215).

Grey85

Gets the color "Grey85" (RGB 218,218,218).

Grey89

Gets the color "Grey89" (RGB 228,228,228).

Grey93

Gets the color "Grey93" (RGB 238,238,238).

Honeydew2

Gets the color "Honeydew2" (RGB 215,255,215).

HotPink

Gets the color "HotPink" (RGB 255,95,175).

HotPink2

Gets the color "HotPink2" (RGB 215,95,175).

HotPink3

Gets the color "HotPink3" (RGB 175,95,135).

HotPink3_1

Gets the color "HotPink3_1" (RGB 215,95,135).

HotPink_1

Gets the color "HotPink_1" (RGB 255,95,215).

IndianRed

Gets the color "IndianRed" (RGB 175,95,95).

IndianRed1

Gets the color "IndianRed1" (RGB 255,95,95).

IndianRed1_1

Gets the color "IndianRed1_1" (RGB 255,95,135).

IndianRed_1

Gets the color "IndianRed_1" (RGB 215,95,95).

Khaki1

Gets the color "Khaki1" (RGB 255,255,135).

Khaki3

Gets the color "Khaki3" (RGB 215,215,95).

LightCoral

Gets the color "LightCoral" (RGB 255,135,135).

LightCyan1

Gets the color "LightCyan1" (RGB 215,255,255).

LightCyan3

Gets the color "LightCyan3" (RGB 175,215,215).

LightGoldenrod1

Gets the color "LightGoldenrod1" (RGB 255,255,95).

LightGoldenrod2

Gets the color "LightGoldenrod2" (RGB 215,215,135).

LightGoldenrod2_1

Gets the color "LightGoldenrod2_1" (RGB 255,215,95).

LightGoldenrod2_2

Gets the color "LightGoldenrod2_2" (RGB 255,215,135).

LightGoldenrod3

Gets the color "LightGoldenrod3" (RGB 215,175,95).

LightGreen

Gets the color "LightGreen" (RGB 135,255,95).

LightGreen_1

Gets the color "LightGreen_1" (RGB 135,255,135).

LightPink1

Gets the color "LightPink1" (RGB 255,175,175).

LightPink3

Gets the color "LightPink3" (RGB 215,135,135).

LightPink4

Gets the color "LightPink4" (RGB 135,95,95).

LightSalmon1

Gets the color "LightSalmon1" (RGB 255,175,135).

LightSalmon3

Gets the color "LightSalmon3" (RGB 175,135,95).

LightSalmon3_1

Gets the color "LightSalmon3_1" (RGB 215,135,95).

LightSeaGreen

Gets the color "LightSeaGreen" (RGB 0,175,175).

LightSkyBlue1

Gets the color "LightSkyBlue1" (RGB 175,215,255).

LightSkyBlue3

Gets the color "LightSkyBlue3" (RGB 135,175,175).

LightSkyBlue3_1

Gets the color "LightSkyBlue3_1" (RGB 135,175,215).

LightSlateBlue

Gets the color "LightSlateBlue" (RGB 135,135,255).

LightSlateGrey

Gets the color "LightSlateGrey" (RGB 135,135,175).

LightSteelBlue

Gets the color "LightSteelBlue" (RGB 175,175,255).

LightSteelBlue1

Gets the color "LightSteelBlue1" (RGB 215,215,255).

LightSteelBlue3

Gets the color "LightSteelBlue3" (RGB 175,175,215).

LightYellow3

Gets the color "LightYellow3" (RGB 215,215,175).

Lime

Gets the color "Lime" (RGB 0,255,0).

Magenta

Gets the color "Magenta" (RGB 255,0,255).

Magenta1

Gets the color "Magenta1" (RGB 255,0,255).

Magenta2

Gets the color "Magenta2" (RGB 215,0,255).

Magenta2_1

Gets the color "Magenta2_1" (RGB 255,0,215).

Magenta3

Gets the color "Magenta3" (RGB 175,0,175).

Magenta3_1

Gets the color "Magenta3_1" (RGB 215,0,175).

Magenta3_2

Gets the color "Magenta3_2" (RGB 215,0,215).

Maroon

Gets the color "Maroon" (RGB 128,0,0).

MediumOrchid

Gets the color "MediumOrchid" (RGB 175,95,215).

MediumOrchid1

Gets the color "MediumOrchid1" (RGB 215,95,255).

MediumOrchid1_1

Gets the color "MediumOrchid1_1" (RGB 255,95,255).

MediumOrchid3

Gets the color "MediumOrchid3" (RGB 175,95,175).

MediumPurple

Gets the color "MediumPurple" (RGB 135,135,215).

MediumPurple1

Gets the color "MediumPurple1" (RGB 175,135,255).

MediumPurple2

Gets the color "MediumPurple2" (RGB 175,95,255).

MediumPurple2_1

Gets the color "MediumPurple2_1" (RGB 175,135,215).

MediumPurple3

Gets the color "MediumPurple3" (RGB 135,95,175).

MediumPurple3_1

Gets the color "MediumPurple3_1" (RGB 135,95,215).

MediumPurple4

Gets the color "MediumPurple4" (RGB 95,95,135).

MediumSpringGreen

Gets the color "MediumSpringGreen" (RGB 0,255,175).

MediumTurquoise

Gets the color "MediumTurquoise" (RGB 95,215,215).

MediumVioletRed

Gets the color "MediumVioletRed" (RGB 175,0,135).

MistyRose1

Gets the color "MistyRose1" (RGB 255,215,215).

MistyRose3

Gets the color "MistyRose3" (RGB 215,175,175).

NavajoWhite1

Gets the color "NavajoWhite1" (RGB 255,215,175).

NavajoWhite3

Gets the color "NavajoWhite3" (RGB 175,175,135).

Navy

Gets the color "Navy" (RGB 0,0,128).

NavyBlue

Gets the color "NavyBlue" (RGB 0,0,95).

Olive

Gets the color "Olive" (RGB 128,128,0).

Orange1

Gets the color "Orange1" (RGB 255,175,0).

Orange3

Gets the color "Orange3" (RGB 215,135,0).

Orange4

Gets the color "Orange4" (RGB 95,95,0).

Orange4_1

Gets the color "Orange4_1" (RGB 135,95,0).

OrangeRed1

Gets the color "OrangeRed1" (RGB 255,95,0).

Orchid

Gets the color "Orchid" (RGB 215,95,215).

Orchid1

Gets the color "Orchid1" (RGB 255,135,255).

Orchid2

Gets the color "Orchid2" (RGB 255,135,215).

PaleGreen1

Gets the color "PaleGreen1" (RGB 135,255,175).

PaleGreen1_1

Gets the color "PaleGreen1_1" (RGB 175,255,135).

PaleGreen3

Gets the color "PaleGreen3" (RGB 95,215,95).

PaleGreen3_1

Gets the color "PaleGreen3_1" (RGB 135,215,135).

PaleTurquoise1

Gets the color "PaleTurquoise1" (RGB 175,255,255).

PaleTurquoise4

Gets the color "PaleTurquoise4" (RGB 95,135,135).

PaleVioletRed1

Gets the color "PaleVioletRed1" (RGB 255,135,175).

Pink1

Gets the color "Pink1" (RGB 255,175,215).

Pink3

Gets the color "Pink3" (RGB 215,135,175).

Plum1

Gets the color "Plum1" (RGB 255,175,255).

Plum2

Gets the color "Plum2" (RGB 215,175,255).

Plum3

Gets the color "Plum3" (RGB 215,135,215).

Plum4

Gets the color "Plum4" (RGB 135,95,135).

Purple

Gets the color "Purple" (RGB 128,0,128).

Purple3

Gets the color "Purple3" (RGB 95,0,215).

Purple4

Gets the color "Purple4" (RGB 95,0,135).

Purple4_1

Gets the color "Purple4_1" (RGB 95,0,175).

Purple_1

Gets the color "Purple_1" (RGB 135,0,255).

Purple_2

Gets the color "Purple_2" (RGB 175,0,255).

R

Gets the red component.

Red

Gets the color "Red" (RGB 255,0,0).

Red1

Gets the color "Red1" (RGB 255,0,0).

Red3

Gets the color "Red3" (RGB 175,0,0).

Red3_1

Gets the color "Red3_1" (RGB 215,0,0).

RosyBrown

Gets the color "RosyBrown" (RGB 175,135,135).

RoyalBlue1

Gets the color "RoyalBlue1" (RGB 95,95,255).

Salmon1

Gets the color "Salmon1" (RGB 255,135,95).

SandyBrown

Gets the color "SandyBrown" (RGB 255,175,95).

SeaGreen1

Gets the color "SeaGreen1" (RGB 95,255,135).

SeaGreen1_1

Gets the color "SeaGreen1_1" (RGB 95,255,175).

SeaGreen2

Gets the color "SeaGreen2" (RGB 95,255,95).

SeaGreen3

Gets the color "SeaGreen3" (RGB 95,215,135).

Silver

Gets the color "Silver" (RGB 192,192,192).

SkyBlue1

Gets the color "SkyBlue1" (RGB 135,215,255).

SkyBlue2

Gets the color "SkyBlue2" (RGB 135,175,255).

SkyBlue3

Gets the color "SkyBlue3" (RGB 95,175,215).

SlateBlue1

Gets the color "SlateBlue1" (RGB 135,95,255).

SlateBlue3

Gets the color "SlateBlue3" (RGB 95,95,175).

SlateBlue3_1

Gets the color "SlateBlue3_1" (RGB 95,95,215).

SpringGreen1

Gets the color "SpringGreen1" (RGB 0,255,135).

SpringGreen2

Gets the color "SpringGreen2" (RGB 0,215,135).

SpringGreen2_1

Gets the color "SpringGreen2_1" (RGB 0,255,95).

SpringGreen3

Gets the color "SpringGreen3" (RGB 0,175,95).

SpringGreen3_1

Gets the color "SpringGreen3_1" (RGB 0,215,95).

SpringGreen4

Gets the color "SpringGreen4" (RGB 0,135,95).

SteelBlue

Gets the color "SteelBlue" (RGB 95,135,175).

SteelBlue1

Gets the color "SteelBlue1" (RGB 95,175,255).

SteelBlue1_1

Gets the color "SteelBlue1_1" (RGB 95,215,255).

SteelBlue3

Gets the color "SteelBlue3" (RGB 95,135,215).

Tan

Gets the color "Tan" (RGB 215,175,135).

Teal

Gets the color "Teal" (RGB 0,128,128).

Thistle1

Gets the color "Thistle1" (RGB 255,215,255).

Thistle3

Gets the color "Thistle3" (RGB 215,175,215).

Turquoise2

Gets the color "Turquoise2" (RGB 0,215,255).

Turquoise4

Gets the color "Turquoise4" (RGB 0,135,135).

Violet

Gets the color "Violet" (RGB 215,135,255).

Wheat1

Gets the color "Wheat1" (RGB 255,255,175).

Wheat4

Gets the color "Wheat4" (RGB 135,135,95).

White

Gets the color "White" (RGB 255,255,255).

Yellow

Gets the color "Yellow" (RGB 255,255,0).

Yellow1

Gets the color "Yellow1" (RGB 255,255,0).

Yellow2

Gets the color "Yellow2" (RGB 215,255,0).

Yellow3

Gets the color "Yellow3" (RGB 175,215,0).

Yellow3_1

Gets the color "Yellow3_1" (RGB 215,215,0).

Yellow4

Gets the color "Yellow4" (RGB 135,135,0).

Yellow4_1

Gets the color "Yellow4_1" (RGB 135,175,0).

Methods

Blend(CliColor, float)

Blends two colors.

Equals(CliColor)

Indicates whether the current object is equal to another object of the same type.

Equals(object?)

Indicates whether this instance and a specified object are equal.

ExactOrClosest(CliColorSystem)

Gets the exact or closest color in the specified CliColorSystem.

FromConsoleColor(ConsoleColor)

Converts a ConsoleColor to a CliColor.

FromHex(string)

Creates a color from a hexadecimal string representation.

FromInt32(int)

Converts a color number into a CliColor.

FromName(string)

Gets a CliColor from its name.

GetHashCode()

Returns the hash code for this instance.

ToConsoleColor(CliColor)

Converts a CliColor to a ConsoleColor.

ToHex()

Gets the hexadecimal representation of the color.

ToMarkup()

Converts the color to a markup string.

ToString()

Returns the fully qualified type name of this instance.

TryFromHex(string, out CliColor)

Tries to convert a hexadecimal color code to a CliColor object.

Operators

implicit operator CliColor(ConsoleColor)

Converts a ConsoleColor to a CliColor.

implicit operator CliColor(int)

Converts a int to a CliColor.

implicit operator ConsoleColor(CliColor)

Converts a CliColor to a ConsoleColor.

operator !=(CliColor, CliColor)

Checks if two CliColor instances are not equal.

operator ==(CliColor, CliColor)

Checks if two CliColor instances are equal.