Color
Struct Color
Namespace: SwiftlyS2.Shared.Natives
Assembly: SwiftlyS2.CS2.dll
public struct Color : IEquatable<Color>Implements
Inherited Members
- object.Equals(object?)
- object.Equals(object?, object?)
- object.GetHashCode()
- object.GetType()
- object.ReferenceEquals(object?, object?)
- object.ToString()
Constructors
Color(byte, byte, byte, byte)
public Color(byte r, byte g, byte b, byte a)Parameters
Color(byte, byte, byte)
public Color(byte r, byte g, byte b)Parameters
Color(int, int, int)
public Color(int r, int g, int b)Parameters
Color(int, int, int, int)
public Color(int r, int g, int b, int a)Parameters
Color(char, char, char, char)
public Color(char r, char g, char b, char a)Parameters
Color(char, char, char)
public Color(char r, char g, char b)Parameters
Fields
A
public byte AField Value
AliceBlue
public static Color AliceBlueField Value
AntiqueWhite
public static Color AntiqueWhiteField Value
Aqua
public static Color AquaField Value
Aquamarine
public static Color AquamarineField Value
Azure
public static Color AzureField Value
B
public byte BField Value
Beige
public static Color BeigeField Value
Bisque
public static Color BisqueField Value
Black
public static Color BlackField Value
BlanchedAlmond
public static Color BlanchedAlmondField Value
Blue
public static Color BlueField Value
BlueViolet
public static Color BlueVioletField Value
Brown
public static Color BrownField Value
BurlyWood
public static Color BurlyWoodField Value
CadetBlue
public static Color CadetBlueField Value
Chartreuse
public static Color ChartreuseField Value
Chocolate
public static Color ChocolateField Value
Coral
public static Color CoralField Value
CornflowerBlue
public static Color CornflowerBlueField Value
Cornsilk
public static Color CornsilkField Value
Crimson
public static Color CrimsonField Value
Cyan
public static Color CyanField Value
DarkBlue
public static Color DarkBlueField Value
DarkCyan
public static Color DarkCyanField Value
DarkGoldenrod
public static Color DarkGoldenrodField Value
DarkGray
public static Color DarkGrayField Value
DarkGreen
public static Color DarkGreenField Value
DarkKhaki
public static Color DarkKhakiField Value
DarkMagenta
public static Color DarkMagentaField Value
DarkOliveGreen
public static Color DarkOliveGreenField Value
DarkOrange
public static Color DarkOrangeField Value
DarkOrchid
public static Color DarkOrchidField Value
DarkRed
public static Color DarkRedField Value
DarkSalmon
public static Color DarkSalmonField Value
DarkSeaGreen
public static Color DarkSeaGreenField Value
DarkSlateBlue
public static Color DarkSlateBlueField Value
DarkSlateGray
public static Color DarkSlateGrayField Value
DarkTurquoise
public static Color DarkTurquoiseField Value
DarkViolet
public static Color DarkVioletField Value
DeepPink
public static Color DeepPinkField Value
DeepSkyBlue
public static Color DeepSkyBlueField Value
DimGray
public static Color DimGrayField Value
DodgerBlue
public static Color DodgerBlueField Value
Firebrick
public static Color FirebrickField Value
FloralWhite
public static Color FloralWhiteField Value
ForestGreen
public static Color ForestGreenField Value
Fuchsia
public static Color FuchsiaField Value
G
public byte GField Value
Gainsboro
public static Color GainsboroField Value
GhostWhite
public static Color GhostWhiteField Value
Gold
public static Color GoldField Value
Goldenrod
public static Color GoldenrodField Value
Gray
public static Color GrayField Value
Green
public static Color GreenField Value
GreenYellow
public static Color GreenYellowField Value
Honeydew
public static Color HoneydewField Value
HotPink
public static Color HotPinkField Value
IndianRed
public static Color IndianRedField Value
Indigo
public static Color IndigoField Value
Ivory
public static Color IvoryField Value
Khaki
public static Color KhakiField Value
Lavender
public static Color LavenderField Value
LavenderBlush
public static Color LavenderBlushField Value
LawnGreen
public static Color LawnGreenField Value
LemonChiffon
public static Color LemonChiffonField Value
LightBlue
public static Color LightBlueField Value
LightCoral
public static Color LightCoralField Value
LightCyan
public static Color LightCyanField Value
LightGoldenrodYellow
public static Color LightGoldenrodYellowField Value
LightGray
public static Color LightGrayField Value
LightGreen
public static Color LightGreenField Value
LightPink
public static Color LightPinkField Value
LightSalmon
public static Color LightSalmonField Value
LightSeaGreen
public static Color LightSeaGreenField Value
LightSkyBlue
public static Color LightSkyBlueField Value
LightSlateGray
public static Color LightSlateGrayField Value
LightSteelBlue
public static Color LightSteelBlueField Value
LightYellow
public static Color LightYellowField Value
Lime
public static Color LimeField Value
LimeGreen
public static Color LimeGreenField Value
Linen
public static Color LinenField Value
Magenta
public static Color MagentaField Value
Maroon
public static Color MaroonField Value
MediumAquamarine
public static Color MediumAquamarineField Value
MediumBlue
public static Color MediumBlueField Value
MediumOrchid
public static Color MediumOrchidField Value
MediumPurple
public static Color MediumPurpleField Value
MediumSeaGreen
public static Color MediumSeaGreenField Value
MediumSlateBlue
public static Color MediumSlateBlueField Value
MediumSpringGreen
public static Color MediumSpringGreenField Value
MediumTurquoise
public static Color MediumTurquoiseField Value
MediumVioletRed
public static Color MediumVioletRedField Value
MidnightBlue
public static Color MidnightBlueField Value
MintCream
public static Color MintCreamField Value
MistyRose
public static Color MistyRoseField Value
Moccasin
public static Color MoccasinField Value
NavajoWhite
public static Color NavajoWhiteField Value
Navy
public static Color NavyField Value
OldLace
public static Color OldLaceField Value
Olive
public static Color OliveField Value
OliveDrab
public static Color OliveDrabField Value
Orange
public static Color OrangeField Value
OrangeRed
public static Color OrangeRedField Value
Orchid
public static Color OrchidField Value
PaleGoldenrod
public static Color PaleGoldenrodField Value
PaleGreen
public static Color PaleGreenField Value
PaleTurquoise
public static Color PaleTurquoiseField Value
PaleVioletRed
public static Color PaleVioletRedField Value
PapayaWhip
public static Color PapayaWhipField Value
PeachPuff
public static Color PeachPuffField Value
Peru
public static Color PeruField Value
Pink
public static Color PinkField Value
Plum
public static Color PlumField Value
PowderBlue
public static Color PowderBlueField Value
Purple
public static Color PurpleField Value
R
public byte RField Value
RebeccaPurple
public static Color RebeccaPurpleField Value
Red
public static Color RedField Value
RosyBrown
public static Color RosyBrownField Value
RoyalBlue
public static Color RoyalBlueField Value
SaddleBrown
public static Color SaddleBrownField Value
Salmon
public static Color SalmonField Value
SandyBrown
public static Color SandyBrownField Value
SeaGreen
public static Color SeaGreenField Value
SeaShell
public static Color SeaShellField Value
Sienna
public static Color SiennaField Value
Silver
public static Color SilverField Value
SkyBlue
public static Color SkyBlueField Value
SlateBlue
public static Color SlateBlueField Value
SlateGray
public static Color SlateGrayField Value
Snow
public static Color SnowField Value
SpringGreen
public static Color SpringGreenField Value
SteelBlue
public static Color SteelBlueField Value
Tan
public static Color TanField Value
Teal
public static Color TealField Value
Thistle
public static Color ThistleField Value
Tomato
public static Color TomatoField Value
Turquoise
public static Color TurquoiseField Value
Violet
public static Color VioletField Value
Wheat
public static Color WheatField Value
White
public static Color WhiteField Value
WhiteSmoke
public static Color WhiteSmokeField Value
Yellow
public static Color YellowField Value
YellowGreen
public static Color YellowGreenField Value
Methods
Equals(Color)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(Color other)Parameters
- other Color — An object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)Parameters
- obj object? — The object to compare with the current instance.
Returns
- bool — true if
objand this instance are the same type and represent the same value; otherwise, false.
FromBuiltin(Color)
public static Color FromBuiltin(Color color)Parameters
- color Color
Returns
FromHex(string)
public static Color FromHex(string hex)Parameters
- hex string
Returns
FromInt32(int)
public static Color FromInt32(int color)Parameters
- color int
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()Returns
- int — A 32-bit signed integer that is the hash code for this instance.
ToBuiltin()
public readonly Color ToBuiltin()Returns
ToHex(bool)
public readonly string ToHex(bool includeAlpha = false)Parameters
- includeAlpha bool
Returns
ToInt32()
public readonly int ToInt32()Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()Returns
- string — The fully qualified type name.
Operators
operator ==(Color, Color)
public static bool operator ==(Color left, Color right)Parameters
Returns
operator !=(Color, Color)
public static bool operator !=(Color left, Color right)Parameters
Returns