[]
Represents a color in the form of rgba.
[TypeConverter(typeof(ColorFConverter))]
public struct ColorF : IEquatable<ColorF>, IFormattable
Name | Description |
---|---|
ColorF(ColorF, float) | Initializes a new instance of the ColorF struct. |
ColorF(Vector3, float) | Initializes a new instance of the ColorF struct. |
ColorF(Vector4) | Initializes a new instance of the ColorF struct. |
ColorF(Color) | Initializes a new instance of the ColorF struct. |
ColorF(float) | Initializes a new instance of the ColorF struct. |
ColorF(float, float, float, float) | Initializes a new instance of the ColorF struct. |
ColorF(float[]) | Initializes a new instance of the ColorF struct. |
ColorF(uint) | Initializes a new instance of the ColorF struct. |
ColorF(uint, float) | Initializes a new instance of the ColorF struct. |
Name | Description |
---|---|
A | The alpha component of the color. |
AliceBlue | AliceBlue color. |
AntiqueWhite | AntiqueWhite color. |
Aqua | Aqua color. |
Aquamarine | Aquamarine color. |
Azure | Azure color. |
B | The blue component of the color. |
Beige | Beige color. |
Bisque | Bisque color. |
Black | Black color. |
BlanchedAlmond | BlanchedAlmond color. |
Blue | Blue color. |
BlueViolet | BlueViolet color. |
Brown | Brown color. |
BurlyWood | BurlyWood color. |
CadetBlue | CadetBlue color. |
Chartreuse | Chartreuse color. |
Chocolate | Chocolate color. |
Coral | Coral color. |
CornflowerBlue | CornflowerBlue color. |
Cornsilk | Cornsilk color. |
Crimson | Crimson color. |
Cyan | Cyan color. |
DarkBlue | DarkBlue color. |
DarkCyan | DarkCyan color. |
DarkGoldenrod | DarkGoldenrod color. |
DarkGray | DarkGray color. |
DarkGreen | DarkGreen color. |
DarkKhaki | DarkKhaki color. |
DarkMagenta | DarkMagenta color. |
DarkOliveGreen | DarkOliveGreen color. |
DarkOrange | DarkOrange color. |
DarkOrchid | DarkOrchid color. |
DarkRed | DarkRed color. |
DarkSalmon | DarkSalmon color. |
DarkSeaGreen | DarkSeaGreen color. |
DarkSlateBlue | DarkSlateBlue color. |
DarkSlateGray | DarkSlateGray color. |
DarkTurquoise | DarkTurquoise color. |
DarkViolet | DarkViolet color. |
DeepPink | DeepPink color. |
DeepSkyBlue | DeepSkyBlue color. |
DimGray | DimGray color. |
DodgerBlue | DodgerBlue color. |
Empty | Empty color. |
Firebrick | Firebrick color. |
FloralWhite | FloralWhite color. |
ForestGreen | ForestGreen color. |
Fuchsia | Fuchsia color. |
G | The green component of the color. |
Gainsboro | Gainsboro color. |
GhostWhite | GhostWhite color. |
Gold | Gold color. |
Goldenrod | Goldenrod color. |
Gray | Gray color. |
Green | Green color. |
GreenYellow | GreenYellow color. |
Honeydew | Honeydew color. |
HotPink | HotPink color. |
IndianRed | IndianRed color. |
Indigo | Indigo color. |
Ivory | Ivory color. |
Khaki | Khaki color. |
Lavender | Lavender color. |
LavenderBlush | LavenderBlush color. |
LawnGreen | LawnGreen color. |
LemonChiffon | LemonChiffon color. |
LightBlue | LightBlue color. |
LightCoral | LightCoral color. |
LightCyan | LightCyan color. |
LightGoldenrodYellow | LightGoldenrodYellow color. |
LightGray | LightGray color. |
LightGreen | LightGreen color. |
LightPink | LightPink color. |
LightSalmon | LightSalmon color. |
LightSeaGreen | LightSeaGreen color. |
LightSkyBlue | LightSkyBlue color. |
LightSlateGray | LightSlateGray color. |
LightSteelBlue | LightSteelBlue color. |
LightYellow | LightYellow color. |
Lime | Lime color. |
LimeGreen | LimeGreen color. |
Linen | Linen color. |
Magenta | Magenta color. |
Maroon | Maroon color. |
MediumAquamarine | MediumAquamarine color. |
MediumBlue | MediumBlue color. |
MediumOrchid | MediumOrchid color. |
MediumPurple | MediumPurple color. |
MediumSeaGreen | MediumSeaGreen color. |
MediumSlateBlue | MediumSlateBlue color. |
MediumSpringGreen | MediumSpringGreen color. |
MediumTurquoise | MediumTurquoise color. |
MediumVioletRed | MediumVioletRed color. |
MidnightBlue | MidnightBlue color. |
MintCream | MintCream color. |
MistyRose | MistyRose color. |
Moccasin | Moccasin color. |
NavajoWhite | NavajoWhite color. |
Navy | Navy color. |
OldLace | OldLace color. |
Olive | Olive color. |
OliveDrab | OliveDrab color. |
Orange | Orange color. |
OrangeRed | OrangeRed color. |
Orchid | Orchid color. |
PaleGoldenrod | PaleGoldenrod color. |
PaleGreen | PaleGreen color. |
PaleTurquoise | PaleTurquoise color. |
PaleVioletRed | PaleVioletRed color. |
PapayaWhip | PapayaWhip color. |
PeachPuff | PeachPuff color. |
Peru | Peru color. |
Pink | Pink color. |
Plum | Plum color. |
PowderBlue | PowderBlue color. |
Purple | Purple color. |
R | The red component of the color. |
Red | Red color. |
RosyBrown | RosyBrown color. |
RoyalBlue | RoyalBlue color. |
SaddleBrown | SaddleBrown color. |
Salmon | Salmon color. |
SandyBrown | SandyBrown color. |
SeaGreen | SeaGreen color. |
SeaShell | SeaShell color. |
Sienna | Sienna color. |
Silver | Silver color. |
SizeInBytes | The size of the ColorF type, in bytes. |
SkyBlue | SkyBlue color. |
SlateBlue | SlateBlue color. |
SlateGray | SlateGray color. |
Snow | Snow color. |
SpringGreen | SpringGreen color. |
SteelBlue | SteelBlue color. |
Tan | Tan color. |
Teal | Teal color. |
Thistle | Thistle color. |
Tomato | Tomato color. |
Transparent | Transparent color. |
Turquoise | Turquoise color. |
Violet | Violet color. |
Wheat | Wheat color. |
White | White color. |
WhiteSmoke | WhiteSmoke color. |
Yellow | Yellow color. |
YellowGreen | YellowGreen color. |
Name | Description |
---|---|
IsEmpty | Gets whether this ColorF structure is uninitialized. |
IsTransparent | Gets a value indicating if we can skip drawing with this color. |
Name | Description |
---|---|
AdjustContrast(ColorF, float) | Adjusts the contrast of a color. |
AdjustContrastRef(out ColorF, ref ColorF, float) | Adjusts the contrast of a color. |
AdjustSaturation(ColorF, float) | Adjusts the saturation of a color. |
AdjustSaturationRef(out ColorF, ref ColorF, float) | Adjusts the saturation of a color. |
Equals(ColorF) | Determines whether the specified ColorF is equal to this instance. |
Equals(object) | Determines whether the specified object is equal to this instance. |
EqualsRef(ref ColorF) | Determines whether the specified ColorF is equal to this instance. |
FromArgb(int) | Converts the color from an ARGB integer. |
FromArgb(int, int, int) | Creates a ColorF structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly fully opaque. |
FromArgb(int, int, int, int) | Creates a ColorF structure from the four ARGB component (alpha, red, green, and blue) values. |
GetHashCode() | Returns a hash code for this instance. |
Lerp(ColorF, ColorF, float) | Performs a linear interpolation between two colors. |
LerpRef(out ColorF, ref ColorF, ref ColorF, float) | Performs a linear interpolation between two colors. |
SmoothStep(ColorF, ColorF, float) | Performs a cubic interpolation between two colors. |
SmoothStepRef(out ColorF, ref ColorF, ref ColorF, float) | Performs a cubic interpolation between two colors. |
ToArgb() | Converts the color into a packed integer. |
ToArray() | Creates an array containing the elements of the color. |
ToColor() | Converts the color into a System.Drawing.Color. |
ToString() | Returns a string that represents the current object. |
ToString(IFormatProvider) | Returns a string that represents this instance. |
ToString(string) | Returns a string that represents this instance. |
ToString(string, IFormatProvider) | Returns a string that represents this instance. |
ToVector3() | Converts the color into a three component vector. |
ToVector4() | Converts the color into a four component vector. |
Name | Description |
---|---|
operator ==(ColorF, ColorF) | Determines if the specified values are equal. |
explicit operator Vector3(ColorF) | |
explicit operator Color(ColorF) | |
explicit operator ColorF(Vector3) | |
explicit operator ColorF(Vector4) | |
explicit operator ColorF(Color) | |
implicit operator Vector4(ColorF) | |
operator !=(ColorF, ColorF) | Determines if the specified values are not equal. |