Click or drag to resize

ColorF Structure

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

Namespace:  Syroot.Maths
Assembly:  Syroot.Maths (in Syroot.Maths.dll) Version: 1.5.0-alpha1
Syntax
public struct ColorF : IEquatable<ColorF>, 
	IEquatableByRef<ColorF>, INearlyEquatable<ColorF>, INearlyEquatableByRef<ColorF>

The ColorF type exposes the following members.

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