Click or drag to resize

Color Structure

Represents a 4-component color with the components red, green, blue and alpha, representing each value as a byte.

Namespace:  Syroot.Maths
Assembly:  Syroot.Maths (in Syroot.Maths.dll) Version: 1.5.3
Syntax
public struct Color : IEquatable<Color>, 
	IEquatableByRef<Color>

The Color type exposes the following members.

Constructors
  NameDescription
Public methodColor(Color, Byte)
Initializes a new instance of the Color struct with the specified color and opacity amount.
Public methodColor(Byte, Byte, Byte)
Initializes a new instance of the Color struct with the specified components and full opacity.
Public methodColor(Byte, Byte, Byte, Byte)
Initializes a new instance of the Color struct with the specified component values.
Top
Methods
  NameDescription
Public methodEquals(Object)
Gets a value indicating whether the components of this Color are the same as the components of the second specified Color.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Color)
Indicates whether the current Color is equal to another Color.
Public methodEquals(Color)
Indicates whether the current Color is equal to another Color. Structures are passed by reference to avoid stack structure copying.
Public methodGetHashCode
Gets a hash code as an indication for object equality.
(Overrides ValueTypeGetHashCode.)
Public methodToString
Gets a string describing the components of this Color.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Gets a value indicating whether the components of the first specified Color are the same as the components of the second specified Color.
Public operatorStatic member(ColorF to Color)
Explicit conversion from ColorF
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified Color are not the same as the components of the second specifiedColor.
Top
Fields
  NameDescription
Public fieldA
The opacity amount between 0f (fully transparent) and 1f (fully opaque).
Public fieldStatic memberAliceBlue
A Color with an RGBA value of #F0F8FFFF.
Public fieldStatic memberAntiqueWhite
A Color with an RGBA value of #FAEBD7FF.
Public fieldStatic memberAqua
A Color with an RGBA value of #00FFFFFF.
Public fieldStatic memberAquamarine
A Color with an RGBA value of #7FFFD4FF.
Public fieldStatic memberAzure
A Color with an RGBA value of #F0FFFFFF.
Public fieldB
The amount of blue between 0f (no blue) and 1f (full blue).
Public fieldStatic memberBeige
A Color with an RGBA value of #F5F5DCFF.
Public fieldStatic memberBisque
A Color with an RGBA value of #FFE4C4FF.
Public fieldStatic memberBlack
A Color with an RGBA value of #000000FF.
Public fieldStatic memberBlanchedAlmond
A Color with an RGBA value of #FFEBCDFF.
Public fieldStatic memberBlue
A Color with an RGBA value of #0000FFFF.
Public fieldStatic memberBlueViolet
A Color with an RGBA value of #8A2BE2FF.
Public fieldStatic memberBrown
A Color with an RGBA value of #A52A2AFF.
Public fieldStatic memberBurlyWood
A Color with an RGBA value of #DEB887FF.
Public fieldStatic memberCadetBlue
A Color with an RGBA value of #5F9EA0FF.
Public fieldStatic memberChartreuse
A Color with an RGBA value of #7FFF00FF.
Public fieldStatic memberChocolate
A Color with an RGBA value of #D2691EFF.
Public fieldStatic memberCoral
A Color with an RGBA value of #FF7F50FF.
Public fieldStatic memberCornflowerBlue
A Color with an RGBA value of #6495EDFF.
Public fieldStatic memberCornsilk
A Color with an RGBA value of #FFF8DCFF.
Public fieldStatic memberCrimson
A Color with an RGBA value of #DC143CFF.
Public fieldStatic memberCyan
A Color with an RGBA value of #00FFFFFF.
Public fieldStatic memberDarkBlue
A Color with an RGBA value of #00008BFF.
Public fieldStatic memberDarkCyan
A Color with an RGBA value of #008B8BFF.
Public fieldStatic memberDarkGoldenrod
A Color with an RGBA value of #B8860BFF.
Public fieldStatic memberDarkGray
A Color with an RGBA value of #A9A9A9FF.
Public fieldStatic memberDarkGreen
A Color with an RGBA value of #006400FF.
Public fieldStatic memberDarkKhaki
A Color with an RGBA value of #BDB76BFF.
Public fieldStatic memberDarkMagenta
A Color with an RGBA value of #8B008BFF.
Public fieldStatic memberDarkOliveGreen
A Color with an RGBA value of #556B2FFF.
Public fieldStatic memberDarkOrange
A Color with an RGBA value of #FF8C00FF.
Public fieldStatic memberDarkOrchid
A Color with an RGBA value of #9932CCFF.
Public fieldStatic memberDarkRed
A Color with an RGBA value of #8B0000FF.
Public fieldStatic memberDarkSalmon
A Color with an RGBA value of #E9967AFF.
Public fieldStatic memberDarkSeaGreen
A Color with an RGBA value of #8FBC8BFF.
Public fieldStatic memberDarkSlateBlue
A Color with an RGBA value of #483D8BFF.
Public fieldStatic memberDarkSlateGray
A Color with an RGBA value of #2F4F4FFF.
Public fieldStatic memberDarkTurquoise
A Color with an RGBA value of #00CED1FF.
Public fieldStatic memberDarkViolet
A Color with an RGBA value of #9400D3FF.
Public fieldStatic memberDeepPink
A Color with an RGBA value of #FF1493FF.
Public fieldStatic memberDeepSkyBlue
A Color with an RGBA value of #00BFFFFF.
Public fieldStatic memberDimGray
A Color with an RGBA value of #696969FF.
Public fieldStatic memberDodgerBlue
A Color with an RGBA value of #1E90FFFF.
Public fieldStatic memberFirebrick
A Color with an RGBA value of #B22222FF.
Public fieldStatic memberFloralWhite
A Color with an RGBA value of #FFFAF0FF.
Public fieldStatic memberForestGreen
A Color with an RGBA value of #228B22FF.
Public fieldStatic memberFuchsia
A Color with an RGBA value of #FF00FFFF.
Public fieldG
The amount of green between 0f (no green) and 1f (full green).
Public fieldStatic memberGainsboro
A Color with an RGBA value of #DCDCDCFF.
Public fieldStatic memberGhostWhite
A Color with an RGBA value of #F8F8FFFF.
Public fieldStatic memberGold
A Color with an RGBA value of #FFD700FF.
Public fieldStatic memberGoldenrod
A Color with an RGBA value of #DAA520FF.
Public fieldStatic memberGray
A Color with an RGBA value of #808080FF.
Public fieldStatic memberGreen
A Color with an RGBA value of #008000FF.
Public fieldStatic memberGreenYellow
A Color with an RGBA value of #ADFF2FFF.
Public fieldStatic memberHoneydew
A Color with an RGBA value of #F0FFF0FF.
Public fieldStatic memberHotPink
A Color with an RGBA value of #FF69B4FF.
Public fieldStatic memberIndianRed
A Color with an RGBA value of #CD5C5CFF.
Public fieldStatic memberIndigo
A Color with an RGBA value of #4B0082FF.
Public fieldStatic memberIvory
A Color with an RGBA value of #FFFFF0FF.
Public fieldStatic memberKhaki
A Color with an RGBA value of #F0E68CFF.
Public fieldStatic memberLavender
A Color with an RGBA value of #E6E6FAFF.
Public fieldStatic memberLavenderBlush
A Color with an RGBA value of #FFF0F5FF.
Public fieldStatic memberLawnGreen
A Color with an RGBA value of #7CFC00FF.
Public fieldStatic memberLemonChiffon
A Color with an RGBA value of #FFFACDFF.
Public fieldStatic memberLightBlue
A Color with an RGBA value of #ADD8E6FF.
Public fieldStatic memberLightCoral
A Color with an RGBA value of #F08080FF.
Public fieldStatic memberLightCyan
A Color with an RGBA value of #E0FFFFFF.
Public fieldStatic memberLightGoldenrodYellow
A Color with an RGBA value of #FAFAD2FF.
Public fieldStatic memberLightGray
A Color with an RGBA value of #D3D3D3FF.
Public fieldStatic memberLightGreen
A Color with an RGBA value of #90EE90FF.
Public fieldStatic memberLightPink
A Color with an RGBA value of #FFB6C1FF.
Public fieldStatic memberLightSalmon
A Color with an RGBA value of #FFA07AFF.
Public fieldStatic memberLightSeaGreen
A Color with an RGBA value of #20B2AAFF.
Public fieldStatic memberLightSkyBlue
A Color with an RGBA value of #87CEFAFF.
Public fieldStatic memberLightSlateGray
A Color with an RGBA value of #778899FF.
Public fieldStatic memberLightSteelBlue
A Color with an RGBA value of #B0C4DEFF.
Public fieldStatic memberLightYellow
A Color with an RGBA value of #FFFFE0FF.
Public fieldStatic memberLime
A Color with an RGBA value of #00FF00FF.
Public fieldStatic memberLimeGreen
A Color with an RGBA value of #32CD32FF.
Public fieldStatic memberLinen
A Color with an RGBA value of #FAF0E6FF.
Public fieldStatic memberMagenta
A Color with an RGBA value of #FF00FFFF.
Public fieldStatic memberMaroon
A Color with an RGBA value of #800000FF.
Public fieldStatic memberMediumAquamarine
A Color with an RGBA value of #66CDAAFF.
Public fieldStatic memberMediumBlue
A Color with an RGBA value of #0000CDFF.
Public fieldStatic memberMediumOrchid
A Color with an RGBA value of #BA55D3FF.
Public fieldStatic memberMediumPurple
A Color with an RGBA value of #9370DBFF.
Public fieldStatic memberMediumSeaGreen
A Color with an RGBA value of #3CB371FF.
Public fieldStatic memberMediumSlateBlue
A Color with an RGBA value of #7B68EEFF.
Public fieldStatic memberMediumSpringGreen
A Color with an RGBA value of #00FA9AFF.
Public fieldStatic memberMediumTurquoise
A Color with an RGBA value of #48D1CCFF.
Public fieldStatic memberMediumVioletRed
A Color with an RGBA value of #C71585FF.
Public fieldStatic memberMidnightBlue
A Color with an RGBA value of #191970FF.
Public fieldStatic memberMintCream
A Color with an RGBA value of #F5FFFAFF.
Public fieldStatic memberMistyRose
A Color with an RGBA value of #FFE4E1FF.
Public fieldStatic memberMoccasin
A Color with an RGBA value of #FFE4B5FF.
Public fieldStatic memberNavajoWhite
A Color with an RGBA value of #FFDEADFF.
Public fieldStatic memberNavy
A Color with an RGBA value of #000080FF.
Public fieldStatic memberOldLace
A Color with an RGBA value of #FDF5E6FF.
Public fieldStatic memberOlive
A Color with an RGBA value of #808000FF.
Public fieldStatic memberOliveDrab
A Color with an RGBA value of #6B8E23FF.
Public fieldStatic memberOrange
A Color with an RGBA value of #FFA500FF.
Public fieldStatic memberOrangeRed
A Color with an RGBA value of #FF4500FF.
Public fieldStatic memberOrchid
A Color with an RGBA value of #DA70D6FF.
Public fieldStatic memberPaleGoldenrod
A Color with an RGBA value of #EEE8AAFF.
Public fieldStatic memberPaleGreen
A Color with an RGBA value of #98FB98FF.
Public fieldStatic memberPaleTurquoise
A Color with an RGBA value of #AFEEEEFF.
Public fieldStatic memberPaleVioletRed
A Color with an RGBA value of #DB7093FF.
Public fieldStatic memberPapayaWhip
A Color with an RGBA value of #FFEFD5FF.
Public fieldStatic memberPeachPuff
A Color with an RGBA value of #FFDAB9FF.
Public fieldStatic memberPeru
A Color with an RGBA value of #CD853FFF.
Public fieldStatic memberPink
A Color with an RGBA value of #FFC0CBFF.
Public fieldStatic memberPlum
A Color with an RGBA value of #DDA0DDFF.
Public fieldStatic memberPowderBlue
A Color with an RGBA value of #B0E0E6FF.
Public fieldStatic memberPurple
A Color with an RGBA value of #800080FF.
Public fieldR
The amount of red between 0f (no red) and 1f (full red).
Public fieldStatic memberRed
A Color with an RGBA value of #FF0000FF.
Public fieldStatic memberRosyBrown
A Color with an RGBA value of #BC8F8FFF.
Public fieldStatic memberRoyalBlue
A Color with an RGBA value of #4169E1FF.
Public fieldStatic memberSaddleBrown
A Color with an RGBA value of #8B4513FF.
Public fieldStatic memberSalmon
A Color with an RGBA value of #FA8072FF.
Public fieldStatic memberSandyBrown
A Color with an RGBA value of #F4A460FF.
Public fieldStatic memberSeaGreen
A Color with an RGBA value of #2E8B57FF.
Public fieldStatic memberSeaShell
A Color with an RGBA value of #FFF5EEFF.
Public fieldStatic memberSienna
A Color with an RGBA value of #A0522DFF.
Public fieldStatic memberSilver
A Color with an RGBA value of #C0C0C0FF.
Public fieldStatic memberSizeInBytes
Gets the size of this structure.
Public fieldStatic memberSkyBlue
A Color with an RGBA value of #87CEEBFF.
Public fieldStatic memberSlateBlue
A Color with an RGBA value of #6A5ACDFF.
Public fieldStatic memberSlateGray
A Color with an RGBA value of #708090FF.
Public fieldStatic memberSnow
A Color with an RGBA value of #FFFAFAFF.
Public fieldStatic memberSpringGreen
A Color with an RGBA value of #00FF7FFF.
Public fieldStatic memberSteelBlue
A Color with an RGBA value of #4682B4FF.
Public fieldStatic memberTan
A Color with an RGBA value of #D2B48CFF.
Public fieldStatic memberTeal
A Color with an RGBA value of #008080FF.
Public fieldStatic memberThistle
A Color with an RGBA value of #D8BFD8FF.
Public fieldStatic memberTomato
A Color with an RGBA value of #FF6347FF.
Public fieldStatic memberTransparent
A Color with an RGBA value of #FFFFFF00.
Public fieldStatic memberTurquoise
A Color with an RGBA value of #40E0D0FF.
Public fieldStatic memberValueCount
Gets the amount of value types required to represent this structure.
Public fieldStatic memberViolet
A Color with an RGBA value of #EE82EEFF.
Public fieldStatic memberWheat
A Color with an RGBA value of #F5DEB3FF.
Public fieldStatic memberWhite
A Color with an RGBA value of #FFFFFFFF.
Public fieldStatic memberWhiteSmoke
A Color with an RGBA value of #F5F5F5FF.
Public fieldStatic memberYellow
A Color with an RGBA value of #FFFF00FF.
Public fieldStatic memberYellowGreen
A Color with an RGBA value of #9ACD32FF.
Top
See Also