SwiftlyS2

Color

Struct Color

Namespace: SwiftlyS2.Shared.Natives

Assembly: SwiftlyS2.CS2.dll

public struct Color : IEquatable<Color>

Implements

Inherited Members

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 A
Field Value

AliceBlue

public static Color AliceBlue
Field Value

AntiqueWhite

public static Color AntiqueWhite
Field Value

Aqua

public static Color Aqua
Field Value

Aquamarine

public static Color Aquamarine
Field Value

Azure

public static Color Azure
Field Value

B

public byte B
Field Value

Beige

public static Color Beige
Field Value

Bisque

public static Color Bisque
Field Value

Black

public static Color Black
Field Value

BlanchedAlmond

public static Color BlanchedAlmond
Field Value

Blue

public static Color Blue
Field Value

BlueViolet

public static Color BlueViolet
Field Value

Brown

public static Color Brown
Field Value

BurlyWood

public static Color BurlyWood
Field Value

CadetBlue

public static Color CadetBlue
Field Value

Chartreuse

public static Color Chartreuse
Field Value

Chocolate

public static Color Chocolate
Field Value

Coral

public static Color Coral
Field Value

CornflowerBlue

public static Color CornflowerBlue
Field Value

Cornsilk

public static Color Cornsilk
Field Value

Crimson

public static Color Crimson
Field Value

Cyan

public static Color Cyan
Field Value

DarkBlue

public static Color DarkBlue
Field Value

DarkCyan

public static Color DarkCyan
Field Value

DarkGoldenrod

public static Color DarkGoldenrod
Field Value

DarkGray

public static Color DarkGray
Field Value

DarkGreen

public static Color DarkGreen
Field Value

DarkKhaki

public static Color DarkKhaki
Field Value

DarkMagenta

public static Color DarkMagenta
Field Value

DarkOliveGreen

public static Color DarkOliveGreen
Field Value

DarkOrange

public static Color DarkOrange
Field Value

DarkOrchid

public static Color DarkOrchid
Field Value

DarkRed

public static Color DarkRed
Field Value

DarkSalmon

public static Color DarkSalmon
Field Value

DarkSeaGreen

public static Color DarkSeaGreen
Field Value

DarkSlateBlue

public static Color DarkSlateBlue
Field Value

DarkSlateGray

public static Color DarkSlateGray
Field Value

DarkTurquoise

public static Color DarkTurquoise
Field Value

DarkViolet

public static Color DarkViolet
Field Value

DeepPink

public static Color DeepPink
Field Value

DeepSkyBlue

public static Color DeepSkyBlue
Field Value

DimGray

public static Color DimGray
Field Value

DodgerBlue

public static Color DodgerBlue
Field Value

Firebrick

public static Color Firebrick
Field Value

FloralWhite

public static Color FloralWhite
Field Value

ForestGreen

public static Color ForestGreen
Field Value

Fuchsia

public static Color Fuchsia
Field Value

G

public byte G
Field Value

Gainsboro

public static Color Gainsboro
Field Value

GhostWhite

public static Color GhostWhite
Field Value

Gold

public static Color Gold
Field Value

Goldenrod

public static Color Goldenrod
Field Value

Gray

public static Color Gray
Field Value

Green

public static Color Green
Field Value

GreenYellow

public static Color GreenYellow
Field Value

Honeydew

public static Color Honeydew
Field Value

HotPink

public static Color HotPink
Field Value

IndianRed

public static Color IndianRed
Field Value

Indigo

public static Color Indigo
Field Value

Ivory

public static Color Ivory
Field Value

Khaki

public static Color Khaki
Field Value

Lavender

public static Color Lavender
Field Value

LavenderBlush

public static Color LavenderBlush
Field Value

LawnGreen

public static Color LawnGreen
Field Value

LemonChiffon

public static Color LemonChiffon
Field Value

LightBlue

public static Color LightBlue
Field Value

LightCoral

public static Color LightCoral
Field Value

LightCyan

public static Color LightCyan
Field Value

LightGoldenrodYellow

public static Color LightGoldenrodYellow
Field Value

LightGray

public static Color LightGray
Field Value

LightGreen

public static Color LightGreen
Field Value

LightPink

public static Color LightPink
Field Value

LightSalmon

public static Color LightSalmon
Field Value

LightSeaGreen

public static Color LightSeaGreen
Field Value

LightSkyBlue

public static Color LightSkyBlue
Field Value

LightSlateGray

public static Color LightSlateGray
Field Value

LightSteelBlue

public static Color LightSteelBlue
Field Value

LightYellow

public static Color LightYellow
Field Value

Lime

public static Color Lime
Field Value

LimeGreen

public static Color LimeGreen
Field Value

Linen

public static Color Linen
Field Value

Magenta

public static Color Magenta
Field Value

Maroon

public static Color Maroon
Field Value

MediumAquamarine

public static Color MediumAquamarine
Field Value

MediumBlue

public static Color MediumBlue
Field Value

MediumOrchid

public static Color MediumOrchid
Field Value

MediumPurple

public static Color MediumPurple
Field Value

MediumSeaGreen

public static Color MediumSeaGreen
Field Value

MediumSlateBlue

public static Color MediumSlateBlue
Field Value

MediumSpringGreen

public static Color MediumSpringGreen
Field Value

MediumTurquoise

public static Color MediumTurquoise
Field Value

MediumVioletRed

public static Color MediumVioletRed
Field Value

MidnightBlue

public static Color MidnightBlue
Field Value

MintCream

public static Color MintCream
Field Value

MistyRose

public static Color MistyRose
Field Value

Moccasin

public static Color Moccasin
Field Value
public static Color NavajoWhite
Field Value
public static Color Navy
Field Value

OldLace

public static Color OldLace
Field Value

Olive

public static Color Olive
Field Value

OliveDrab

public static Color OliveDrab
Field Value

Orange

public static Color Orange
Field Value

OrangeRed

public static Color OrangeRed
Field Value

Orchid

public static Color Orchid
Field Value

PaleGoldenrod

public static Color PaleGoldenrod
Field Value

PaleGreen

public static Color PaleGreen
Field Value

PaleTurquoise

public static Color PaleTurquoise
Field Value

PaleVioletRed

public static Color PaleVioletRed
Field Value

PapayaWhip

public static Color PapayaWhip
Field Value

PeachPuff

public static Color PeachPuff
Field Value

Peru

public static Color Peru
Field Value

Pink

public static Color Pink
Field Value

Plum

public static Color Plum
Field Value

PowderBlue

public static Color PowderBlue
Field Value

Purple

public static Color Purple
Field Value

R

public byte R
Field Value

RebeccaPurple

public static Color RebeccaPurple
Field Value

Red

public static Color Red
Field Value

RosyBrown

public static Color RosyBrown
Field Value

RoyalBlue

public static Color RoyalBlue
Field Value

SaddleBrown

public static Color SaddleBrown
Field Value

Salmon

public static Color Salmon
Field Value

SandyBrown

public static Color SandyBrown
Field Value

SeaGreen

public static Color SeaGreen
Field Value

SeaShell

public static Color SeaShell
Field Value

Sienna

public static Color Sienna
Field Value

Silver

public static Color Silver
Field Value

SkyBlue

public static Color SkyBlue
Field Value

SlateBlue

public static Color SlateBlue
Field Value

SlateGray

public static Color SlateGray
Field Value

Snow

public static Color Snow
Field Value

SpringGreen

public static Color SpringGreen
Field Value

SteelBlue

public static Color SteelBlue
Field Value

Tan

public static Color Tan
Field Value

Teal

public static Color Teal
Field Value

Thistle

public static Color Thistle
Field Value

Tomato

public static Color Tomato
Field Value

Turquoise

public static Color Turquoise
Field Value

Violet

public static Color Violet
Field Value

Wheat

public static Color Wheat
Field Value

White

public static Color White
Field Value

WhiteSmoke

public static Color WhiteSmoke
Field Value

Yellow

public static Color Yellow
Field Value

YellowGreen

public static Color YellowGreen
Field 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
  • booltrue if the current object is equal to the other parameter; otherwise, false.

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
  • booltrue if obj and this instance are the same type and represent the same value; otherwise, false.

FromBuiltin(Color)

public static Color FromBuiltin(Color color)
Parameters
Returns

FromHex(string)

public static Color FromHex(string hex)
Parameters
Returns

FromInt32(int)

public static Color FromInt32(int color)
Parameters
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
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

On this page

Struct Color
Implements
Inherited Members
Constructors
Color(byte, byte, byte, byte)
Color(byte, byte, byte)
Color(int, int, int)
Color(int, int, int, int)
Color(char, char, char, char)
Color(char, char, char)
Fields
A
AliceBlue
AntiqueWhite
Aqua
Aquamarine
Azure
B
Beige
Bisque
Black
BlanchedAlmond
Blue
BlueViolet
Brown
BurlyWood
CadetBlue
Chartreuse
Chocolate
Coral
CornflowerBlue
Cornsilk
Crimson
Cyan
DarkBlue
DarkCyan
DarkGoldenrod
DarkGray
DarkGreen
DarkKhaki
DarkMagenta
DarkOliveGreen
DarkOrange
DarkOrchid
DarkRed
DarkSalmon
DarkSeaGreen
DarkSlateBlue
DarkSlateGray
DarkTurquoise
DarkViolet
DeepPink
DeepSkyBlue
DimGray
DodgerBlue
Firebrick
FloralWhite
ForestGreen
Fuchsia
G
Gainsboro
GhostWhite
Gold
Goldenrod
Gray
Green
GreenYellow
Honeydew
HotPink
IndianRed
Indigo
Ivory
Khaki
Lavender
LavenderBlush
LawnGreen
LemonChiffon
LightBlue
LightCoral
LightCyan
LightGoldenrodYellow
LightGray
LightGreen
LightPink
LightSalmon
LightSeaGreen
LightSkyBlue
LightSlateGray
LightSteelBlue
LightYellow
Lime
LimeGreen
Linen
Magenta
Maroon
MediumAquamarine
MediumBlue
MediumOrchid
MediumPurple
MediumSeaGreen
MediumSlateBlue
MediumSpringGreen
MediumTurquoise
MediumVioletRed
MidnightBlue
MintCream
MistyRose
Moccasin
NavajoWhite
Navy
OldLace
Olive
OliveDrab
Orange
OrangeRed
Orchid
PaleGoldenrod
PaleGreen
PaleTurquoise
PaleVioletRed
PapayaWhip
PeachPuff
Peru
Pink
Plum
PowderBlue
Purple
R
RebeccaPurple
Red
RosyBrown
RoyalBlue
SaddleBrown
Salmon
SandyBrown
SeaGreen
SeaShell
Sienna
Silver
SkyBlue
SlateBlue
SlateGray
Snow
SpringGreen
SteelBlue
Tan
Teal
Thistle
Tomato
Turquoise
Violet
Wheat
White
WhiteSmoke
Yellow
YellowGreen
Methods
Equals(Color)
Equals(object?)
FromBuiltin(Color)
FromHex(string)
FromInt32(int)
GetHashCode()
ToBuiltin()
ToHex(bool)
ToInt32()
ToString()
Operators
operator ==(Color, Color)
operator !=(Color, Color)