Color Structure

Represents a color.
public struct Color : ValueType, IEquatable<Color>
Namespace
Spectre.Console
Interfaces
Base Types
  • ValueType

Constructors

Color(byte, byte, byte)
Initializes a new instance of the Color struct.

Properties

static Color Aqua
Gets the color "Aqua" (RGB 0,255,255).
static Color Aquamarine1
Gets the color "Aquamarine1" (RGB 95,255,215).
static Color Aquamarine1_1
Gets the color "Aquamarine1_1" (RGB 135,255,215).
static Color Aquamarine3
Gets the color "Aquamarine3" (RGB 95,215,175).
byte B
Gets the blue component.
static Color Black
Gets the color "Black" (RGB 0,0,0).
static Color Blue
Gets the color "Blue" (RGB 0,0,255).
static Color Blue1
Gets the color "Blue1" (RGB 0,0,255).
static Color Blue3
Gets the color "Blue3" (RGB 0,0,175).
static Color Blue3_1
Gets the color "Blue3_1" (RGB 0,0,215).
static Color BlueViolet
Gets the color "BlueViolet" (RGB 95,0,255).
static Color CadetBlue
Gets the color "CadetBlue" (RGB 95,175,135).
static Color CadetBlue_1
Gets the color "CadetBlue_1" (RGB 95,175,175).
static Color Chartreuse1
Gets the color "Chartreuse1" (RGB 135,255,0).
static Color Chartreuse2
Gets the color "Chartreuse2" (RGB 95,255,0).
static Color Chartreuse2_1
Gets the color "Chartreuse2_1" (RGB 135,215,0).
static Color Chartreuse3
Gets the color "Chartreuse3" (RGB 95,175,0).
static Color Chartreuse3_1
Gets the color "Chartreuse3_1" (RGB 95,215,0).
static Color Chartreuse4
Gets the color "Chartreuse4" (RGB 95,135,0).
static Color CornflowerBlue
Gets the color "CornflowerBlue" (RGB 95,135,255).
static Color Cornsilk1
Gets the color "Cornsilk1" (RGB 255,255,215).
static Color Cyan1
Gets the color "Cyan1" (RGB 0,255,255).
static Color Cyan2
Gets the color "Cyan2" (RGB 0,255,215).
static Color Cyan3
Gets the color "Cyan3" (RGB 0,215,175).
static Color DarkBlue
Gets the color "DarkBlue" (RGB 0,0,135).
static Color DarkCyan
Gets the color "DarkCyan" (RGB 0,175,135).
static Color DarkGoldenrod
Gets the color "DarkGoldenrod" (RGB 175,135,0).
static Color DarkGreen
Gets the color "DarkGreen" (RGB 0,95,0).
static Color DarkKhaki
Gets the color "DarkKhaki" (RGB 175,175,95).
static Color DarkMagenta
Gets the color "DarkMagenta" (RGB 135,0,135).
static Color DarkMagenta_1
Gets the color "DarkMagenta_1" (RGB 135,0,175).
static Color DarkOliveGreen1
Gets the color "DarkOliveGreen1" (RGB 215,255,95).
static Color DarkOliveGreen1_1
Gets the color "DarkOliveGreen1_1" (RGB 215,255,135).
static Color DarkOliveGreen2
Gets the color "DarkOliveGreen2" (RGB 175,255,95).
static Color DarkOliveGreen3
Gets the color "DarkOliveGreen3" (RGB 135,175,95).
static Color DarkOliveGreen3_1
Gets the color "DarkOliveGreen3_1" (RGB 135,215,95).
static Color DarkOliveGreen3_2
Gets the color "DarkOliveGreen3_2" (RGB 175,215,95).
static Color DarkOrange
Gets the color "DarkOrange" (RGB 255,135,0).
static Color DarkOrange3
Gets the color "DarkOrange3" (RGB 175,95,0).
static Color DarkOrange3_1
Gets the color "DarkOrange3_1" (RGB 215,95,0).
static Color DarkRed
Gets the color "DarkRed" (RGB 95,0,0).
static Color DarkRed_1
Gets the color "DarkRed_1" (RGB 135,0,0).
static Color DarkSeaGreen
Gets the color "DarkSeaGreen" (RGB 135,175,135).
static Color DarkSeaGreen1
Gets the color "DarkSeaGreen1" (RGB 175,255,215).
static Color DarkSeaGreen1_1
Gets the color "DarkSeaGreen1_1" (RGB 215,255,175).
static Color DarkSeaGreen2
Gets the color "DarkSeaGreen2" (RGB 175,215,175).
static Color DarkSeaGreen2_1
Gets the color "DarkSeaGreen2_1" (RGB 175,255,175).
static Color DarkSeaGreen3
Gets the color "DarkSeaGreen3" (RGB 135,215,175).
static Color DarkSeaGreen3_1
Gets the color "DarkSeaGreen3_1" (RGB 175,215,135).
static Color DarkSeaGreen4
Gets the color "DarkSeaGreen4" (RGB 95,135,95).
static Color DarkSeaGreen4_1
Gets the color "DarkSeaGreen4_1" (RGB 95,175,95).
static Color DarkSlateGray1
Gets the color "DarkSlateGray1" (RGB 135,255,255).
static Color DarkSlateGray2
Gets the color "DarkSlateGray2" (RGB 95,255,255).
static Color DarkSlateGray3
Gets the color "DarkSlateGray3" (RGB 135,215,215).
static Color DarkTurquoise
Gets the color "DarkTurquoise" (RGB 0,215,215).
static Color DarkViolet
Gets the color "DarkViolet" (RGB 135,0,215).
static Color DarkViolet_1
Gets the color "DarkViolet_1" (RGB 175,0,215).
static Color DeepPink1
Gets the color "DeepPink1" (RGB 255,0,135).
static Color DeepPink1_1
Gets the color "DeepPink1_1" (RGB 255,0,175).
static Color DeepPink2
Gets the color "DeepPink2" (RGB 255,0,95).
static Color DeepPink3
Gets the color "DeepPink3" (RGB 215,0,95).
static Color DeepPink3_1
Gets the color "DeepPink3_1" (RGB 215,0,135).
static Color DeepPink4
Gets the color "DeepPink4" (RGB 95,0,95).
static Color DeepPink4_1
Gets the color "DeepPink4_1" (RGB 135,0,95).
static Color DeepPink4_2
Gets the color "DeepPink4_2" (RGB 175,0,95).
static Color DeepSkyBlue1
Gets the color "DeepSkyBlue1" (RGB 0,175,255).
static Color DeepSkyBlue2
Gets the color "DeepSkyBlue2" (RGB 0,175,215).
static Color DeepSkyBlue3
Gets the color "DeepSkyBlue3" (RGB 0,135,175).
static Color DeepSkyBlue3_1
Gets the color "DeepSkyBlue3_1" (RGB 0,135,215).
static Color DeepSkyBlue4
Gets the color "DeepSkyBlue4" (RGB 0,95,95).
static Color DeepSkyBlue4_1
Gets the color "DeepSkyBlue4_1" (RGB 0,95,135).
static Color DeepSkyBlue4_2
Gets the color "DeepSkyBlue4_2" (RGB 0,95,175).
static Color Default
Gets the default color.
static Color DodgerBlue1
Gets the color "DodgerBlue1" (RGB 0,135,255).
static Color DodgerBlue2
Gets the color "DodgerBlue2" (RGB 0,95,255).
static Color DodgerBlue3
Gets the color "DodgerBlue3" (RGB 0,95,215).
static Color Fuchsia
Gets the color "Fuchsia" (RGB 255,0,255).
byte G
Gets the green component.
static Color Gold1
Gets the color "Gold1" (RGB 255,215,0).
static Color Gold3
Gets the color "Gold3" (RGB 175,175,0).
static Color Gold3_1
Gets the color "Gold3_1" (RGB 215,175,0).
static Color Green
Gets the color "Green" (RGB 0,128,0).
static Color Green1
Gets the color "Green1" (RGB 0,255,0).
static Color Green3
Gets the color "Green3" (RGB 0,175,0).
static Color Green3_1
Gets the color "Green3_1" (RGB 0,215,0).
static Color Green4
Gets the color "Green4" (RGB 0,135,0).
static Color GreenYellow
Gets the color "GreenYellow" (RGB 175,255,0).
static Color Grey
Gets the color "Grey" (RGB 128,128,128).
static Color Grey0
Gets the color "Grey0" (RGB 0,0,0).
static Color Grey100
Gets the color "Grey100" (RGB 255,255,255).
static Color Grey11
Gets the color "Grey11" (RGB 28,28,28).
static Color Grey15
Gets the color "Grey15" (RGB 38,38,38).
static Color Grey19
Gets the color "Grey19" (RGB 48,48,48).
static Color Grey23
Gets the color "Grey23" (RGB 58,58,58).
static Color Grey27
Gets the color "Grey27" (RGB 68,68,68).
static Color Grey3
Gets the color "Grey3" (RGB 8,8,8).
static Color Grey30
Gets the color "Grey30" (RGB 78,78,78).
static Color Grey35
Gets the color "Grey35" (RGB 88,88,88).
static Color Grey37
Gets the color "Grey37" (RGB 95,95,95).
static Color Grey39
Gets the color "Grey39" (RGB 98,98,98).
static Color Grey42
Gets the color "Grey42" (RGB 108,108,108).
static Color Grey46
Gets the color "Grey46" (RGB 118,118,118).
static Color Grey50
Gets the color "Grey50" (RGB 128,128,128).
static Color Grey53
Gets the color "Grey53" (RGB 135,135,135).
static Color Grey54
Gets the color "Grey54" (RGB 138,138,138).
static Color Grey58
Gets the color "Grey58" (RGB 148,148,148).
static Color Grey62
Gets the color "Grey62" (RGB 158,158,158).
static Color Grey63
Gets the color "Grey63" (RGB 175,135,175).
static Color Grey66
Gets the color "Grey66" (RGB 168,168,168).
static Color Grey69
Gets the color "Grey69" (RGB 175,175,175).
static Color Grey7
Gets the color "Grey7" (RGB 18,18,18).
static Color Grey70
Gets the color "Grey70" (RGB 178,178,178).
static Color Grey74
Gets the color "Grey74" (RGB 188,188,188).
static Color Grey78
Gets the color "Grey78" (RGB 198,198,198).
static Color Grey82
Gets the color "Grey82" (RGB 208,208,208).
static Color Grey84
Gets the color "Grey84" (RGB 215,215,215).
static Color Grey85
Gets the color "Grey85" (RGB 218,218,218).
static Color Grey89
Gets the color "Grey89" (RGB 228,228,228).
static Color Grey93
Gets the color "Grey93" (RGB 238,238,238).
static Color Honeydew2
Gets the color "Honeydew2" (RGB 215,255,215).
static Color HotPink
Gets the color "HotPink" (RGB 255,95,175).
static Color HotPink_1
Gets the color "HotPink_1" (RGB 255,95,215).
static Color HotPink2
Gets the color "HotPink2" (RGB 215,95,175).
static Color HotPink3
Gets the color "HotPink3" (RGB 175,95,135).
static Color HotPink3_1
Gets the color "HotPink3_1" (RGB 215,95,135).
static Color IndianRed
Gets the color "IndianRed" (RGB 175,95,95).
static Color IndianRed_1
Gets the color "IndianRed_1" (RGB 215,95,95).
static Color IndianRed1
Gets the color "IndianRed1" (RGB 255,95,95).
static Color IndianRed1_1
Gets the color "IndianRed1_1" (RGB 255,95,135).
static Color Khaki1
Gets the color "Khaki1" (RGB 255,255,135).
static Color Khaki3
Gets the color "Khaki3" (RGB 215,215,95).
static Color LightCoral
Gets the color "LightCoral" (RGB 255,135,135).
static Color LightCyan1
Gets the color "LightCyan1" (RGB 215,255,255).
static Color LightCyan3
Gets the color "LightCyan3" (RGB 175,215,215).
static Color LightGoldenrod1
Gets the color "LightGoldenrod1" (RGB 255,255,95).
static Color LightGoldenrod2
Gets the color "LightGoldenrod2" (RGB 215,215,135).
static Color LightGoldenrod2_1
Gets the color "LightGoldenrod2_1" (RGB 255,215,95).
static Color LightGoldenrod2_2
Gets the color "LightGoldenrod2_2" (RGB 255,215,135).
static Color LightGoldenrod3
Gets the color "LightGoldenrod3" (RGB 215,175,95).
static Color LightGreen
Gets the color "LightGreen" (RGB 135,255,95).
static Color LightGreen_1
Gets the color "LightGreen_1" (RGB 135,255,135).
static Color LightPink1
Gets the color "LightPink1" (RGB 255,175,175).
static Color LightPink3
Gets the color "LightPink3" (RGB 215,135,135).
static Color LightPink4
Gets the color "LightPink4" (RGB 135,95,95).
static Color LightSalmon1
Gets the color "LightSalmon1" (RGB 255,175,135).
static Color LightSalmon3
Gets the color "LightSalmon3" (RGB 175,135,95).
static Color LightSalmon3_1
Gets the color "LightSalmon3_1" (RGB 215,135,95).
static Color LightSeaGreen
Gets the color "LightSeaGreen" (RGB 0,175,175).
static Color LightSkyBlue1
Gets the color "LightSkyBlue1" (RGB 175,215,255).
static Color LightSkyBlue3
Gets the color "LightSkyBlue3" (RGB 135,175,175).
static Color LightSkyBlue3_1
Gets the color "LightSkyBlue3_1" (RGB 135,175,215).
static Color LightSlateBlue
Gets the color "LightSlateBlue" (RGB 135,135,255).
static Color LightSlateGrey
Gets the color "LightSlateGrey" (RGB 135,135,175).
static Color LightSteelBlue
Gets the color "LightSteelBlue" (RGB 175,175,255).
static Color LightSteelBlue1
Gets the color "LightSteelBlue1" (RGB 215,215,255).
static Color LightSteelBlue3
Gets the color "LightSteelBlue3" (RGB 175,175,215).
static Color LightYellow3
Gets the color "LightYellow3" (RGB 215,215,175).
static Color Lime
Gets the color "Lime" (RGB 0,255,0).
static Color Magenta1
Gets the color "Magenta1" (RGB 255,0,255).
static Color Magenta2
Gets the color "Magenta2" (RGB 215,0,255).
static Color Magenta2_1
Gets the color "Magenta2_1" (RGB 255,0,215).
static Color Magenta3
Gets the color "Magenta3" (RGB 175,0,175).
static Color Magenta3_1
Gets the color "Magenta3_1" (RGB 215,0,175).
static Color Magenta3_2
Gets the color "Magenta3_2" (RGB 215,0,215).
static Color Maroon
Gets the color "Maroon" (RGB 128,0,0).
static Color MediumOrchid
Gets the color "MediumOrchid" (RGB 175,95,215).
static Color MediumOrchid1
Gets the color "MediumOrchid1" (RGB 215,95,255).
static Color MediumOrchid1_1
Gets the color "MediumOrchid1_1" (RGB 255,95,255).
static Color MediumOrchid3
Gets the color "MediumOrchid3" (RGB 175,95,175).
static Color MediumPurple
Gets the color "MediumPurple" (RGB 135,135,215).
static Color MediumPurple1
Gets the color "MediumPurple1" (RGB 175,135,255).
static Color MediumPurple2
Gets the color "MediumPurple2" (RGB 175,95,255).
static Color MediumPurple2_1
Gets the color "MediumPurple2_1" (RGB 175,135,215).
static Color MediumPurple3
Gets the color "MediumPurple3" (RGB 135,95,175).
static Color MediumPurple3_1
Gets the color "MediumPurple3_1" (RGB 135,95,215).
static Color MediumPurple4
Gets the color "MediumPurple4" (RGB 95,95,135).
static Color MediumSpringGreen
Gets the color "MediumSpringGreen" (RGB 0,255,175).
static Color MediumTurquoise
Gets the color "MediumTurquoise" (RGB 95,215,215).
static Color MediumVioletRed
Gets the color "MediumVioletRed" (RGB 175,0,135).
static Color MistyRose1
Gets the color "MistyRose1" (RGB 255,215,215).
static Color MistyRose3
Gets the color "MistyRose3" (RGB 215,175,175).
static Color NavajoWhite1
Gets the color "NavajoWhite1" (RGB 255,215,175).
static Color NavajoWhite3
Gets the color "NavajoWhite3" (RGB 175,175,135).
static Color Navy
Gets the color "Navy" (RGB 0,0,128).
static Color NavyBlue
Gets the color "NavyBlue" (RGB 0,0,95).
static Color Olive
Gets the color "Olive" (RGB 128,128,0).
static Color Orange1
Gets the color "Orange1" (RGB 255,175,0).
static Color Orange3
Gets the color "Orange3" (RGB 215,135,0).
static Color Orange4
Gets the color "Orange4" (RGB 95,95,0).
static Color Orange4_1
Gets the color "Orange4_1" (RGB 135,95,0).
static Color OrangeRed1
Gets the color "OrangeRed1" (RGB 255,95,0).
static Color Orchid
Gets the color "Orchid" (RGB 215,95,215).
static Color Orchid1
Gets the color "Orchid1" (RGB 255,135,255).
static Color Orchid2
Gets the color "Orchid2" (RGB 255,135,215).
static Color PaleGreen1
Gets the color "PaleGreen1" (RGB 135,255,175).
static Color PaleGreen1_1
Gets the color "PaleGreen1_1" (RGB 175,255,135).
static Color PaleGreen3
Gets the color "PaleGreen3" (RGB 95,215,95).
static Color PaleGreen3_1
Gets the color "PaleGreen3_1" (RGB 135,215,135).
static Color PaleTurquoise1
Gets the color "PaleTurquoise1" (RGB 175,255,255).
static Color PaleTurquoise4
Gets the color "PaleTurquoise4" (RGB 95,135,135).
static Color PaleVioletRed1
Gets the color "PaleVioletRed1" (RGB 255,135,175).
static Color Pink1
Gets the color "Pink1" (RGB 255,175,215).
static Color Pink3
Gets the color "Pink3" (RGB 215,135,175).
static Color Plum1
Gets the color "Plum1" (RGB 255,175,255).
static Color Plum2
Gets the color "Plum2" (RGB 215,175,255).
static Color Plum3
Gets the color "Plum3" (RGB 215,135,215).
static Color Plum4
Gets the color "Plum4" (RGB 135,95,135).
static Color Purple
Gets the color "Purple" (RGB 128,0,128).
static Color Purple_1
Gets the color "Purple_1" (RGB 135,0,255).
static Color Purple_2
Gets the color "Purple_2" (RGB 175,0,255).
static Color Purple3
Gets the color "Purple3" (RGB 95,0,215).
static Color Purple4
Gets the color "Purple4" (RGB 95,0,135).
static Color Purple4_1
Gets the color "Purple4_1" (RGB 95,0,175).
byte R
Gets the red component.
static Color Red
Gets the color "Red" (RGB 255,0,0).
static Color Red1
Gets the color "Red1" (RGB 255,0,0).
static Color Red3
Gets the color "Red3" (RGB 175,0,0).
static Color Red3_1
Gets the color "Red3_1" (RGB 215,0,0).
static Color RosyBrown
Gets the color "RosyBrown" (RGB 175,135,135).
static Color RoyalBlue1
Gets the color "RoyalBlue1" (RGB 95,95,255).
static Color Salmon1
Gets the color "Salmon1" (RGB 255,135,95).
static Color SandyBrown
Gets the color "SandyBrown" (RGB 255,175,95).
static Color SeaGreen1
Gets the color "SeaGreen1" (RGB 95,255,135).
static Color SeaGreen1_1
Gets the color "SeaGreen1_1" (RGB 95,255,175).
static Color SeaGreen2
Gets the color "SeaGreen2" (RGB 95,255,95).
static Color SeaGreen3
Gets the color "SeaGreen3" (RGB 95,215,135).
static Color Silver
Gets the color "Silver" (RGB 192,192,192).
static Color SkyBlue1
Gets the color "SkyBlue1" (RGB 135,215,255).
static Color SkyBlue2
Gets the color "SkyBlue2" (RGB 135,175,255).
static Color SkyBlue3
Gets the color "SkyBlue3" (RGB 95,175,215).
static Color SlateBlue1
Gets the color "SlateBlue1" (RGB 135,95,255).
static Color SlateBlue3
Gets the color "SlateBlue3" (RGB 95,95,175).
static Color SlateBlue3_1
Gets the color "SlateBlue3_1" (RGB 95,95,215).
static Color SpringGreen1
Gets the color "SpringGreen1" (RGB 0,255,135).
static Color SpringGreen2
Gets the color "SpringGreen2" (RGB 0,215,135).
static Color SpringGreen2_1
Gets the color "SpringGreen2_1" (RGB 0,255,95).
static Color SpringGreen3
Gets the color "SpringGreen3" (RGB 0,175,95).
static Color SpringGreen3_1
Gets the color "SpringGreen3_1" (RGB 0,215,95).
static Color SpringGreen4
Gets the color "SpringGreen4" (RGB 0,135,95).
static Color SteelBlue
Gets the color "SteelBlue" (RGB 95,135,175).
static Color SteelBlue1
Gets the color "SteelBlue1" (RGB 95,175,255).
static Color SteelBlue1_1
Gets the color "SteelBlue1_1" (RGB 95,215,255).
static Color SteelBlue3
Gets the color "SteelBlue3" (RGB 95,135,215).
static Color Tan
Gets the color "Tan" (RGB 215,175,135).
static Color Teal
Gets the color "Teal" (RGB 0,128,128).
static Color Thistle1
Gets the color "Thistle1" (RGB 255,215,255).
static Color Thistle3
Gets the color "Thistle3" (RGB 215,175,215).
static Color Turquoise2
Gets the color "Turquoise2" (RGB 0,215,255).
static Color Turquoise4
Gets the color "Turquoise4" (RGB 0,135,135).
static Color Violet
Gets the color "Violet" (RGB 215,135,255).
static Color Wheat1
Gets the color "Wheat1" (RGB 255,255,175).
static Color Wheat4
Gets the color "Wheat4" (RGB 135,135,95).
static Color White
Gets the color "White" (RGB 255,255,255).
static Color Yellow
Gets the color "Yellow" (RGB 255,255,0).
static Color Yellow1
Gets the color "Yellow1" (RGB 255,255,0).
static Color Yellow2
Gets the color "Yellow2" (RGB 215,255,0).
static Color Yellow3
Gets the color "Yellow3" (RGB 175,215,0).
static Color Yellow3_1
Gets the color "Yellow3_1" (RGB 215,215,0).
static Color Yellow4
Gets the color "Yellow4" (RGB 135,135,0).
static Color Yellow4_1
Gets the color "Yellow4_1" (RGB 135,175,0).

Methods

Color Blend(Color, float)
Blends two colors.
override bool Equals(object)
static Color FromConsoleColor(ConsoleColor)
Converts a ConsoleColor to a Color.
static Color FromInt32(int)
Converts a color number into a Color.
override int GetHashCode()
static ConsoleColor ToConsoleColor(Color)
Converts a Color to a ConsoleColor.
string ToHex()
Gets the hexadecimal representation of the color.
string ToMarkup()
Converts the color to a markup string.
override string ToString()