Color Structure

Represents a 24-bit color with a 8-bit alpha channel.
[TypeConverterAttribute(typeof(ColorConverter))]
public struct Color : IFormattable, IEquatable<Color>

Properties

Public propertyA
Gets the alpha channel value of this color in the range [0,255] where 0 is fully transparent.
Public propertyStatic memberAliceBlue
Gets a Color with a #RRGGBBAA value of #F0F8FFFF.
Public propertyStatic memberAntiqueWhite
Gets a Color with a #RRGGBBAA value of #FAEBD7FF.
Public propertyStatic memberAqua
Gets a Color with a #RRGGBBAA value of #00FFFFFF.
Public propertyStatic memberAquamarine
Gets a Color with a #RRGGBBAA value of #7FFFD4FF.
Public propertyStatic memberAzure
Gets a Color with a #RRGGBBAA value of #F0FFFFFF.
Public propertyB
Gets the blue component of this color in the range [0,255].
Public propertyStatic memberBeige
Gets a Color with a #RRGGBBAA value of #F5F5DCFF.
Public propertyStatic memberBisque
Gets a Color with a #RRGGBBAA value of #FFE4C4FF.
Public propertyStatic memberBlack
Gets a Color with a #RRGGBBAA value of #000000FF.
Public propertyStatic memberBlanchedAlmond
Gets a Color with a #RRGGBBAA value of #FFEBCDFF.
Public propertyStatic memberBlue
Gets a Color with a #RRGGBBAA value of #0000FFFF.
Public propertyStatic memberBlueViolet
Gets a Color with a #RRGGBBAA value of #8A2BE2FF.
Public propertyStatic memberBrown
Gets a Color with a #RRGGBBAA value of #A52A2AFF.
Public propertyStatic memberBurlywood
Gets a Color with a #RRGGBBAA value of #DEB887FF.
Public propertyStatic memberCadetBlue
Gets a Color with a #RRGGBBAA value of #5F9EA0FF.
Public propertyStatic memberChartreuse
Gets a Color with a #RRGGBBAA value of #7FFF00FF.
Public propertyStatic memberChocolate
Gets a Color with a #RRGGBBAA value of #D2691EFF.
Public propertyStatic memberCoral
Gets a Color with a #RRGGBBAA value of #FF7F50FF.
Public propertyStatic memberCornflowerBlue
Gets a Color with a #RRGGBBAA value of #6495EDFF.
Public propertyStatic memberCornsilk
Gets a Color with a #RRGGBBAA value of #FFF8DCFF.
Public propertyStatic memberCrimson
Gets a Color with a #RRGGBBAA value of #DC143CFF.
Public propertyStatic memberCyan
Gets a Color with a #RRGGBBAA value of #00FFFFFF.
Public propertyStatic memberDarkBlue
Gets a Color with a #RRGGBBAA value of #00008BFF.
Public propertyStatic memberDarkCyan
Gets a Color with a #RRGGBBAA value of #008B8BFF.
Public propertyStatic memberDarkGoldenrod
Gets a Color with a #RRGGBBAA value of #B8860BFF.
Public propertyStatic memberDarkGray
Gets a Color with a #RRGGBBAA value of #A9A9A9FF.
Public propertyStatic memberDarkGreen
Gets a Color with a #RRGGBBAA value of #006400FF.
Public propertyStatic memberDarkGrey
Gets a Color with a #RRGGBBAA value of #A9A9A9FF.
Public propertyStatic memberDarkKhaki
Gets a Color with a #RRGGBBAA value of #BDB76BFF.
Public propertyStatic memberDarkMagenta
Gets a Color with a #RRGGBBAA value of #8B008BFF.
Public propertyStatic memberDarkOliveGreen
Gets a Color with a #RRGGBBAA value of #556B2FFF.
Public propertyStatic memberDarkOrange
Gets a Color with a #RRGGBBAA value of #FF8C00FF.
Public propertyStatic memberDarkOrchid
Gets a Color with a #RRGGBBAA value of #9932CCFF.
Public propertyStatic memberDarkRed
Gets a Color with a #RRGGBBAA value of #8B0000FF.
Public propertyStatic memberDarkSalmon
Gets a Color with a #RRGGBBAA value of #E9967AFF.
Public propertyStatic memberDarkSeaGreen
Gets a Color with a #RRGGBBAA value of #8FBC8FFF.
Public propertyStatic memberDarkSlateBlue
Gets a Color with a #RRGGBBAA value of #483D8BFF.
Public propertyStatic memberDarkSlateGray
Gets a Color with a #RRGGBBAA value of #2F4F4FFF.
Public propertyStatic memberDarkSlateGrey
Gets a Color with a #RRGGBBAA value of #2F4F4FFF.
Public propertyStatic memberDarkTurquoise
Gets a Color with a #RRGGBBAA value of #00CED1FF.
Public propertyStatic memberDarkViolet
Gets a Color with a #RRGGBBAA value of #9400D3FF.
Public propertyStatic memberDeepPink
Gets a Color with a #RRGGBBAA value of #FF1493FF.
Public propertyStatic memberDeepSkyBlue
Gets a Color with a #RRGGBBAA value of #00BFFFFF.
Public propertyStatic memberDimGray
Gets a Color with a #RRGGBBAA value of #696969FF.
Public propertyStatic memberDimGrey
Gets a Color with a #RRGGBBAA value of #696969FF.
Public propertyStatic memberDodgerBlue
Gets a Color with a #RRGGBBAA value of #1E90FFFF.
Public propertyStatic memberFirebrick
Gets a Color with a #RRGGBBAA value of #B22222FF.
Public propertyStatic memberFloralWhite
Gets a Color with a #RRGGBBAA value of #FFFAF0FF.
Public propertyStatic memberForestGreen
Gets a Color with a #RRGGBBAA value of #228B22FF.
Public propertyStatic memberFuchsia
Gets a Color with a #RRGGBBAA value of #FF00FFFF.
Public propertyG
Gets the green component of this color in the range [0,255].
Public propertyStatic memberGainsboro
Gets a Color with a #RRGGBBAA value of #DCDCDCFF.
Public propertyStatic memberGhostWhite
Gets a Color with a #RRGGBBAA value of #F8F8FFFF.
Public propertyStatic memberGold
Gets a Color with a #RRGGBBAA value of #FFD700FF.
Public propertyStatic memberGoldenrod
Gets a Color with a #RRGGBBAA value of #DAA520FF.
Public propertyStatic memberGray
Gets a Color with a #RRGGBBAA value of #BEBEBEFF.
Public propertyStatic memberGreen
Gets a Color with a #RRGGBBAA value of #00FF00FF.
Public propertyStatic memberGreenYellow
Gets a Color with a #RRGGBBAA value of #ADFF2FFF.
Public propertyStatic memberGrey
Gets a Color with a #RRGGBBAA value of #BEBEBEFF.
Public propertyStatic memberHoneydew
Gets a Color with a #RRGGBBAA value of #F0FFF0FF.
Public propertyStatic memberHotPink
Gets a Color with a #RRGGBBAA value of #FF69B4FF.
Public propertyStatic memberIndianRed
Gets a Color with a #RRGGBBAA value of #CD5C5CFF.
Public propertyStatic memberIndigo
Gets a Color with a #RRGGBBAA value of #4B0082FF.
Public propertyStatic memberIvory
Gets a Color with a #RRGGBBAA value of #FFFFF0FF.
Public propertyStatic memberKhaki
Gets a Color with a #RRGGBBAA value of #F0E68CFF.
Public propertyStatic memberLavender
Gets a Color with a #RRGGBBAA value of #E6E6FAFF.
Public propertyStatic memberLavenderBlush
Gets a Color with a #RRGGBBAA value of #FFF0F5FF.
Public propertyStatic memberLawnGreen
Gets a Color with a #RRGGBBAA value of #7CFC00FF.
Public propertyStatic memberLemonChiffon
Gets a Color with a #RRGGBBAA value of #FFFACDFF.
Public propertyStatic memberLightBlue
Gets a Color with a #RRGGBBAA value of #ADD8E6FF.
Public propertyStatic memberLightCoral
Gets a Color with a #RRGGBBAA value of #F08080FF.
Public propertyStatic memberLightCyan
Gets a Color with a #RRGGBBAA value of #E0FFFFFF.
Public propertyStatic memberLightGoldenrod
Gets a Color with a #RRGGBBAA value of #EEDD82FF.
Public propertyStatic memberLightGoldenrodYellow
Gets a Color with a #RRGGBBAA value of #FAFAD2FF.
Public propertyStatic memberLightGray
Gets a Color with a #RRGGBBAA value of #D3D3D3FF.
Public propertyStatic memberLightGreen
Gets a Color with a #RRGGBBAA value of #90EE90FF.
Public propertyStatic memberLightGrey
Gets a Color with a #RRGGBBAA value of #D3D3D3FF.
Public propertyStatic memberLightPink
Gets a Color with a #RRGGBBAA value of #FFB6C1FF.
Public propertyStatic memberLightSalmon
Gets a Color with a #RRGGBBAA value of #FFA07AFF.
Public propertyStatic memberLightSeaGreen
Gets a Color with a #RRGGBBAA value of #20B2AAFF.
Public propertyStatic memberLightSkyBlue
Gets a Color with a #RRGGBBAA value of #87CEFAFF.
Public propertyStatic memberLightSlateBlue
Gets a Color with a #RRGGBBAA value of #8470FFFF.
Public propertyStatic memberLightSlateGray
Gets a Color with a #RRGGBBAA value of #778899FF.
Public propertyStatic memberLightSlateGrey
Gets a Color with a #RRGGBBAA value of #778899FF.
Public propertyStatic memberLightSteelBlue
Gets a Color with a #RRGGBBAA value of #B0C4DEFF.
Public propertyStatic memberLightYellow
Gets a Color with a #RRGGBBAA value of #FFFFE0FF.
Public propertyStatic memberLime
Gets a Color with a #RRGGBBAA value of #00FF00FF.
Public propertyStatic memberLimeGreen
Gets a Color with a #RRGGBBAA value of #32CD32FF.
Public propertyStatic memberLinen
Gets a Color with a #RRGGBBAA value of #FAF0E6FF.
Public propertyStatic memberMagenta
Gets a Color with a #RRGGBBAA value of #FF00FFFF.
Public propertyStatic memberMaroon
Gets a Color with a #RRGGBBAA value of #B03060FF.
Public propertyStatic memberMediumAquamarine
Gets a Color with a #RRGGBBAA value of #66CDAAFF.
Public propertyStatic memberMediumBlue
Gets a Color with a #RRGGBBAA value of #0000CDFF.
Public propertyStatic memberMediumOrchid
Gets a Color with a #RRGGBBAA value of #BA55D3FF.
Public propertyStatic memberMediumPurple
Gets a Color with a #RRGGBBAA value of #9370DBFF.
Public propertyStatic memberMediumSeaGreen
Gets a Color with a #RRGGBBAA value of #3CB371FF.
Public propertyStatic memberMediumSlateBlue
Gets a Color with a #RRGGBBAA value of #7B68EEFF.
Public propertyStatic memberMediumSpringGreen
Gets a Color with a #RRGGBBAA value of #00FA9AFF.
Public propertyStatic memberMediumTurquoise
Gets a Color with a #RRGGBBAA value of #48D1CCFF.
Public propertyStatic memberMediumVioletRed
Gets a Color with a #RRGGBBAA value of #C71585FF.
Public propertyStatic memberMidnightBlue
Gets a Color with a #RRGGBBAA value of #191970FF.
Public propertyStatic memberMintCream
Gets a Color with a #RRGGBBAA value of #F5FFFAFF.
Public propertyStatic memberMistyRose
Gets a Color with a #RRGGBBAA value of #FFE4E1FF.
Public propertyStatic memberMoccasin
Gets a Color with a #RRGGBBAA value of #FFE4B5FF.
Public propertyStatic memberNavajoWhite
Gets a Color with a #RRGGBBAA value of #FFDEADFF.
Public propertyStatic memberNavy
Gets a Color with a #RRGGBBAA value of #000080FF.
Public propertyStatic memberNavyBlue
Gets a Color with a #RRGGBBAA value of #000080FF.
Public propertyStatic memberOldLace
Gets a Color with a #RRGGBBAA value of #FDF5E6FF.
Public propertyStatic memberOlive
Gets a Color with a #RRGGBBAA value of #808000FF.
Public propertyStatic memberOliveDrab
Gets a Color with a #RRGGBBAA value of #6B8E23FF.
Public propertyStatic memberOrange
Gets a Color with a #RRGGBBAA value of #FFA500FF.
Public propertyStatic memberOrangeRed
Gets a Color with a #RRGGBBAA value of #FF4500FF.
Public propertyStatic memberOrchid
Gets a Color with a #RRGGBBAA value of #DA70D6FF.
Public propertyStatic memberPaleGoldenrod
Gets a Color with a #RRGGBBAA value of #EEE8AAFF.
Public propertyStatic memberPaleGreen
Gets a Color with a #RRGGBBAA value of #98FB98FF.
Public propertyStatic memberPaleTurquoise
Gets a Color with a #RRGGBBAA value of #AFEEEEFF.
Public propertyStatic memberPaleVioletRed
Gets a Color with a #RRGGBBAA value of #DB7093FF.
Public propertyStatic memberPapayaWhip
Gets a Color with a #RRGGBBAA value of #FFEFD5FF.
Public propertyStatic memberPeachPuff
Gets a Color with a #RRGGBBAA value of #FFDAB9FF.
Public propertyStatic memberPeru
Gets a Color with a #RRGGBBAA value of #CD853FFF.
Public propertyStatic memberPink
Gets a Color with a #RRGGBBAA value of #FFC0CBFF.
Public propertyStatic memberPlum
Gets a Color with a #RRGGBBAA value of #DDA0DDFF.
Public propertyStatic memberPowderBlue
Gets a Color with a #RRGGBBAA value of #B0E0E6FF.
Public propertyStatic memberPurple
Gets a Color with a #RRGGBBAA value of #A020F0FF.
Public propertyR
Gets the red component of this color in the range [0,255].
Public propertyStatic memberRebeccaPurple
Gets a Color with a #RRGGBBAA value of #663399FF.
Public propertyStatic memberRed
Gets a Color with a #RRGGBBAA value of #FF0000FF.
Public propertyStatic memberRosyBrown
Gets a Color with a #RRGGBBAA value of #BC8F8FFF.
Public propertyStatic memberRoyalBlue
Gets a Color with a #RRGGBBAA value of #4169E1FF.
Public propertyStatic memberSaddleBrown
Gets a Color with a #RRGGBBAA value of #8B4513FF.
Public propertyStatic memberSalmon
Gets a Color with a #RRGGBBAA value of #FA8072FF.
Public propertyStatic memberSandyBrown
Gets a Color with a #RRGGBBAA value of #F4A460FF.
Public propertyStatic memberSeaGreen
Gets a Color with a #RRGGBBAA value of #2E8B57FF.
Public propertyStatic memberSeashell
Gets a Color with a #RRGGBBAA value of #FFF5EEFF.
Public propertyStatic memberSienna
Gets a Color with a #RRGGBBAA value of #A0522DFF.
Public propertyStatic memberSilver
Gets a Color with a #RRGGBBAA value of #C0C0C0FF.
Public propertyStatic memberSkyBlue
Gets a Color with a #RRGGBBAA value of #87CEEBFF.
Public propertyStatic memberSlateBlue
Gets a Color with a #RRGGBBAA value of #6A5ACDFF.
Public propertyStatic memberSlateGray
Gets a Color with a #RRGGBBAA value of #708090FF.
Public propertyStatic memberSlateGrey
Gets a Color with a #RRGGBBAA value of #708090FF.
Public propertyStatic memberSnow
Gets a Color with a #RRGGBBAA value of #FFFAFAFF.
Public propertyStatic memberSpringGreen
Gets a Color with a #RRGGBBAA value of #00FF7FFF.
Public propertyStatic memberSteelBlue
Gets a Color with a #RRGGBBAA value of #4682B4FF.
Public propertyStatic memberTan
Gets a Color with a #RRGGBBAA value of #D2B48CFF.
Public propertyStatic memberTeal
Gets a Color with a #RRGGBBAA value of #008080FF.
Public propertyStatic memberThistle
Gets a Color with a #RRGGBBAA value of #D8BFD8FF.
Public propertyStatic memberTomato
Gets a Color with a #RRGGBBAA value of #FF6347FF.
Public propertyStatic memberTransparent
Gets a Color with a #RRGGBBAA value of #00000000.
Public propertyStatic memberTurquoise
Gets a Color with a #RRGGBBAA value of #40E0D0FF.
Public propertyStatic memberViolet
Gets a Color with a #RRGGBBAA value of #EE82EEFF.
Public propertyStatic memberVioletRed
Gets a Color with a #RRGGBBAA value of #D02090FF.
Public propertyStatic memberWebGray
Gets a Color with a #RRGGBBAA value of #808080FF.
Public propertyStatic memberWebGreen
Gets a Color with a #RRGGBBAA value of #008000FF.
Public propertyStatic memberWebGrey
Gets a Color with a #RRGGBBAA value of #808080FF.
Public propertyStatic memberWebMaroon
Gets a Color with a #RRGGBBAA value of #800000FF.
Public propertyStatic memberWebPurple
Gets a Color with a #RRGGBBAA value of #800080FF.
Public propertyStatic memberWheat
Gets a Color with a #RRGGBBAA value of #F5DEB3FF.
Public propertyStatic memberWhite
Gets a Color with a #RRGGBBAA value of #FFFFFFFF.
Public propertyStatic memberWhiteSmoke
Gets a Color with a #RRGGBBAA value of #F5F5F5FF.
Public propertyStatic memberYellow
Gets a Color with a #RRGGBBAA value of #FFFF00FF.
Public propertyStatic memberYellowGreen
Gets a Color with a #RRGGBBAA value of #9ACD32FF.

Methods

Public methodEquals(Object)
Checks if this color has the same RGBA value as another color.
Public methodEquals(Color)
Checks if this color has the same RGBA value as another color.
Public methodStatic memberFromHsl(Single, Single, Single)
Creates a Color instance from HSL (Hue-Saturation-Lightness) color parameters.
Public methodStatic memberFromHsl(Single, Single, Single, Single)
Creates a Color instance from HSL (Hue-Saturation-Lightness) color parameters and an alpha value.
Public methodStatic memberFromHwb(Single, Single, Single)
Creates a Color instance from HWB (Hue-Whiteness-Blackness) color parameters.
Public methodStatic memberFromHwb(Single, Single, Single, Single)
Creates a Color instance from HWB (Hue-Whiteness-Blackness) color parameters and an alpha value.
Public methodStatic memberFromRgb
Creates a fully opaque Color from RGB color components.
Public methodStatic memberFromRgba(UInt32)
Creates a Color from a 32-bit RGBA value.
Public methodStatic memberFromRgba(Int32, Int32, Int32, Int32)
Creates a Color from RGBA color components.
Public methodGetHashCode
Gets the RGBA value which serves as hash for this color.
Public methodStatic memberMix
Computes a mix of the two specified colors, with the proportion given by the specified weight.
Public methodOver
Blends this color with another color using the over blending operation.
Public methodStatic memberParse
Parse a string to a Color.
Public methodToRgba
Gets the 32-bit RGBA value of this color.
Public methodToString
Gets a hexadecimal representation of this color on the format #rrggbbaa.
Public methodToString(String)
Gets a string representation of this color on the specified format.
Public methodToString(String, IFormatProvider)
Gets a string representation of this color on the specified format.
Public methodStatic memberTryParse
Tries to parse a string to a Color without throwing any exception upon failures.

Operators

Public operatorStatic memberEquality
Checks if the two Color have the same RGBA value.
Public operatorStatic memberInequality
Checks if the two Color have different RGBA value.

See Also

Reference