💻 TermColor User Manual
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | List of all members
TermColor.Color24 Struct Reference
Inheritance diagram for TermColor.Color24:
Inheritance graph
[legend]
Collaboration diagram for TermColor.Color24:
Collaboration graph
[legend]

Public Member Functions

 Color24 (byte red, byte green, byte blue)
 
void From< TColor > (in TColor color)
 
override bool Equals (object other)
 
override int GetHashCode ()
 
ColorHSV ToHSV ()
 
ColorRGB ToRGB ()
 

Static Public Member Functions

static bool operator== (in Color24 a, in Color24 b)
 
static bool operator!= (in Color24 a, in Color24 b)
 

Static Public Attributes

static readonly Color24 MediumVioletRed = new(199, 21, 133)
 
static readonly Color24 DeepPink = new(255, 20, 147)
 
static readonly Color24 PaleVioletRed = new(219, 112, 147)
 
static readonly Color24 HotPink = new(255, 105, 180)
 
static readonly Color24 LightPink = new(255, 182, 193)
 
static readonly Color24 Pink = new(255, 192, 203)
 
static readonly Color24 DarkRed = new(139, 0, 0)
 
static readonly Color24 RedColor = new(255, 0, 0)
 
static readonly Color24 Firebrick = new(178, 34, 34)
 
static readonly Color24 Crimson = new(220, 20, 60)
 
static readonly Color24 IndianRed = new(205, 92, 92)
 
static readonly Color24 LightCoral = new(240, 128, 128)
 
static readonly Color24 Salmon = new(250, 128, 114)
 
static readonly Color24 DarkSalmon = new(233, 150, 122)
 
static readonly Color24 LightSalmon = new(255, 160, 122)
 
static readonly Color24 OrangeRed = new(255, 69, 0)
 
static readonly Color24 Tomato = new(255, 99, 71)
 
static readonly Color24 DarkOrange = new(255, 140, 0)
 
static readonly Color24 Coral = new(255, 127, 80)
 
static readonly Color24 Orange = new(255, 165, 0)
 
static readonly Color24 DarkKhaki = new(189, 183, 107)
 
static readonly Color24 Gold = new(255, 215, 0)
 
static readonly Color24 Khaki = new(240, 230, 140)
 
static readonly Color24 PeachPuff = new(255, 218, 185)
 
static readonly Color24 Yellow = new(255, 255, 0)
 
static readonly Color24 PaleGoldenrod = new(238, 232, 170)
 
static readonly Color24 Moccasin = new(255, 228, 181)
 
static readonly Color24 PapayaWhip = new(255, 239, 213)
 
static readonly Color24 LightGoldenrodYellow = new(250, 250, 210)
 
static readonly Color24 LemonChiffon = new(255, 250, 205)
 
static readonly Color24 LightYellow = new(255, 255, 224)
 
static readonly Color24 Maroon = new(128, 0, 0)
 
static readonly Color24 Brown = new(165, 42, 42)
 
static readonly Color24 SaddleBrown = new(139, 69, 19)
 
static readonly Color24 Sienna = new(160, 82, 45)
 
static readonly Color24 Chocolate = new(210, 105, 30)
 
static readonly Color24 DarkGoldenrod = new(184, 134, 11)
 
static readonly Color24 Peru = new(205, 133, 63)
 
static readonly Color24 RosyBrown = new(188, 143, 143)
 
static readonly Color24 Goldenrod = new(218, 165, 32)
 
static readonly Color24 SandyBrown = new(244, 164, 96)
 
static readonly Color24 Tan = new(210, 180, 140)
 
static readonly Color24 Burlywood = new(222, 184, 135)
 
static readonly Color24 Wheat = new(245, 222, 179)
 
static readonly Color24 NavajoWhite = new(255, 222, 173)
 
static readonly Color24 Bisque = new(255, 228, 196)
 
static readonly Color24 BlanchedAlmond = new(255, 235, 205)
 
static readonly Color24 Cornsilk = new(255, 248, 220)
 
static readonly Color24 DarkGreen = new(0, 100, 0)
 
static readonly Color24 GreenColor = new(0, 128, 0)
 
static readonly Color24 DarkOliveGreen = new(85, 107, 47)
 
static readonly Color24 ForestGreen = new(34, 139, 34)
 
static readonly Color24 SeaGreen = new(46, 139, 87)
 
static readonly Color24 Olive = new(128, 128, 0)
 
static readonly Color24 OliveDrab = new(107, 142, 35)
 
static readonly Color24 MediumSeaGreen = new(60, 179, 113)
 
static readonly Color24 LimeGreen = new(50, 205, 50)
 
static readonly Color24 Lime = new(0, 255, 0)
 
static readonly Color24 SpringGreen = new(0, 255, 127)
 
static readonly Color24 MediumSpringGreen = new(0, 250, 154)
 
static readonly Color24 DarkSeaGreen = new(143, 188, 143)
 
static readonly Color24 MediumAquamarine = new(102, 205, 170)
 
static readonly Color24 YellowGreen = new(154, 205, 50)
 
static readonly Color24 LawnGreen = new(124, 252, 0)
 
static readonly Color24 Chartreuse = new(127, 255, 0)
 
static readonly Color24 LightGreen = new(144, 238, 144)
 
static readonly Color24 GreenYellow = new(173, 255, 47)
 
static readonly Color24 PaleGreen = new(152, 251, 152)
 
static readonly Color24 Teal = new(0, 128, 128)
 
static readonly Color24 DarkCyan = new(0, 139, 139)
 
static readonly Color24 LightSeaGreen = new(32, 178, 170)
 
static readonly Color24 CadetBlue = new(95, 158, 160)
 
static readonly Color24 DarkTurquoise = new(0, 206, 209)
 
static readonly Color24 MediumTurquoise = new(72, 209, 204)
 
static readonly Color24 Turquoise = new(64, 224, 208)
 
static readonly Color24 Aqua = new(0, 255, 255)
 
static readonly Color24 Cyan = new(0, 255, 255)
 
static readonly Color24 Aquamarine = new(127, 255, 212)
 
static readonly Color24 PaleTurquoise = new(175, 238, 238)
 
static readonly Color24 LightCyan = new(224, 255, 255)
 
static readonly Color24 Navy = new(0, 0, 128)
 
static readonly Color24 DarkBlue = new(0, 0, 139)
 
static readonly Color24 MediumBlue = new(0, 0, 205)
 
static readonly Color24 BlueColor = new(0, 0, 255)
 
static readonly Color24 MidnightBlue = new(25, 25, 112)
 
static readonly Color24 RoyalBlue = new(65, 105, 225)
 
static readonly Color24 SteelBlue = new(70, 130, 180)
 
static readonly Color24 DodgerBlue = new(30, 144, 255)
 
static readonly Color24 DeepSkyBlue = new(0, 191, 255)
 
static readonly Color24 CornflowerBlue = new(100, 149, 237)
 
static readonly Color24 SkyBlue = new(135, 206, 235)
 
static readonly Color24 LightSkyBlue = new(135, 206, 250)
 
static readonly Color24 LightSteelBlue = new(176, 196, 222)
 
static readonly Color24 LightBlue = new(173, 216, 230)
 
static readonly Color24 PowderBlue = new(176, 224, 230)
 
static readonly Color24 Indigo = new(75, 0, 130)
 
static readonly Color24 Purple = new(128, 0, 128)
 
static readonly Color24 DarkMagenta = new(139, 0, 139)
 
static readonly Color24 DarkViolet = new(148, 0, 211)
 
static readonly Color24 DarkSlateBlue = new(72, 61, 139)
 
static readonly Color24 BlueViolet = new(138, 43, 226)
 
static readonly Color24 DarkOrchid = new(153, 50, 204)
 
static readonly Color24 Fuchsia = new(255, 0, 255)
 
static readonly Color24 Magenta = new(255, 0, 255)
 
static readonly Color24 SlateBlue = new(106, 90, 205)
 
static readonly Color24 MediumSlateBlue = new(123, 104, 238)
 
static readonly Color24 MediumOrchid = new(186, 85, 211)
 
static readonly Color24 MediumPurple = new(147, 112, 219)
 
static readonly Color24 Orchid = new(218, 112, 214)
 
static readonly Color24 Violet = new(238, 130, 238)
 
static readonly Color24 Plum = new(221, 160, 221)
 
static readonly Color24 Thistle = new(216, 191, 216)
 
static readonly Color24 Lavender = new(230, 230, 250)
 
static readonly Color24 MistyRose = new(255, 228, 225)
 
static readonly Color24 AntiqueWhite = new(250, 235, 215)
 
static readonly Color24 Linen = new(250, 240, 230)
 
static readonly Color24 Beige = new(245, 245, 220)
 
static readonly Color24 WhiteSmoke = new(245, 245, 245)
 
static readonly Color24 LavenderBlush = new(255, 240, 245)
 
static readonly Color24 OldLace = new(253, 245, 230)
 
static readonly Color24 AliceBlue = new(240, 248, 255)
 
static readonly Color24 Seashell = new(255, 245, 238)
 
static readonly Color24 GhostWhite = new(248, 248, 255)
 
static readonly Color24 Honeydew = new(240, 255, 240)
 
static readonly Color24 FloralWhite = new(255, 250, 240)
 
static readonly Color24 Azure = new(240, 255, 255)
 
static readonly Color24 MintCream = new(245, 255, 250)
 
static readonly Color24 Snow = new(255, 250, 250)
 
static readonly Color24 Ivory = new(255, 255, 240)
 
static readonly Color24 White = new(255, 255, 255)
 
static readonly Color24 Black = new(0, 0, 0)
 
static readonly Color24 DarkSlateGray = new(47, 79, 79)
 
static readonly Color24 DimGray = new(105, 105, 105)
 
static readonly Color24 SlateGray = new(112, 128, 144)
 
static readonly Color24 Gray = new(128, 128, 128)
 
static readonly Color24 LightSlateGray = new(119, 136, 153)
 
static readonly Color24 DarkGray = new(169, 169, 169)
 
static readonly Color24 Silver = new(192, 192, 192)
 
static readonly Color24 LightGray = new(211, 211, 211)
 
static readonly Color24 Gainsboro = new(220, 220, 220)
 

Properties

byte Red [get, set]
 
byte Green [get, set]
 
byte Blue [get, set]
 
string Foreground [get]
 
string Background [get]
 
- Properties inherited from TermColor.ANSIColor
string Foreground [get]
 
string Background [get]
 

Detailed Description

A color from 24-bit palette.

Member Function Documentation

◆ From< TColor >()

void TermColor.Color24.From< TColor > ( in TColor  color)
inline

Change this color to approximate color .

Template Parameters
TColorType of the color.
Parameters
colorThe color to approximate.

Implements TermColor.IColor.

Type Constraints
TColor :IColor 

◆ ToHSV()

ColorHSV TermColor.Color24.ToHSV ( )
inline

Convert this color to its HSV equivalent.

Returns

Implements TermColor.IColor.

◆ ToRGB()

ColorRGB TermColor.Color24.ToRGB ( )
inline

Convert this color to its RGB equivalent

Returns

Implements TermColor.IColor.


The documentation for this struct was generated from the following file: