Class ColorPresets
A collection of convenient color presets and helpers. Colors are returned as Vector4 (r,g,b,a) with each component in range [0,1].
public static class ColorPresets
- Inheritance
-
ColorPresets
- Inherited Members
Properties
AliceBlue
public static Vector4 AliceBlue { get; }
Property Value
AntiqueWhite
public static Vector4 AntiqueWhite { get; }
Property Value
Aqua
public static Vector4 Aqua { get; }
Property Value
Aquamarine
public static Vector4 Aquamarine { get; }
Property Value
Azure
public static Vector4 Azure { get; }
Property Value
Beige
public static Vector4 Beige { get; }
Property Value
Bisque
public static Vector4 Bisque { get; }
Property Value
Black
public static Vector4 Black { get; }
Property Value
BlanchedAlmond
public static Vector4 BlanchedAlmond { get; }
Property Value
Blue
public static Vector4 Blue { get; }
Property Value
BlueViolet
public static Vector4 BlueViolet { get; }
Property Value
Brown
public static Vector4 Brown { get; }
Property Value
BurlyWood
public static Vector4 BurlyWood { get; }
Property Value
CadetBlue
public static Vector4 CadetBlue { get; }
Property Value
Chartreuse
public static Vector4 Chartreuse { get; }
Property Value
Chocolate
public static Vector4 Chocolate { get; }
Property Value
Coral
public static Vector4 Coral { get; }
Property Value
CornflowerBlue
public static Vector4 CornflowerBlue { get; }
Property Value
Crimson
public static Vector4 Crimson { get; }
Property Value
Cyan
public static Vector4 Cyan { get; }
Property Value
DarkBlue
public static Vector4 DarkBlue { get; }
Property Value
DarkCyan
public static Vector4 DarkCyan { get; }
Property Value
DarkGoldenrod
public static Vector4 DarkGoldenrod { get; }
Property Value
DarkGray
public static Vector4 DarkGray { get; }
Property Value
DarkGreen
public static Vector4 DarkGreen { get; }
Property Value
DarkKhaki
public static Vector4 DarkKhaki { get; }
Property Value
DarkMagenta
public static Vector4 DarkMagenta { get; }
Property Value
DarkOliveGreen
public static Vector4 DarkOliveGreen { get; }
Property Value
DarkOrange
public static Vector4 DarkOrange { get; }
Property Value
DarkOrchid
public static Vector4 DarkOrchid { get; }
Property Value
DarkRed
public static Vector4 DarkRed { get; }
Property Value
DarkSalmon
public static Vector4 DarkSalmon { get; }
Property Value
DarkSeaGreen
public static Vector4 DarkSeaGreen { get; }
Property Value
DarkSlateBlue
public static Vector4 DarkSlateBlue { get; }
Property Value
DarkSlateGray
public static Vector4 DarkSlateGray { get; }
Property Value
DarkTurquoise
public static Vector4 DarkTurquoise { get; }
Property Value
DarkViolet
public static Vector4 DarkViolet { get; }
Property Value
DeepPink
public static Vector4 DeepPink { get; }
Property Value
DeepSkyBlue
public static Vector4 DeepSkyBlue { get; }
Property Value
DimGray
public static Vector4 DimGray { get; }
Property Value
DodgerBlue
public static Vector4 DodgerBlue { get; }
Property Value
Firebrick
public static Vector4 Firebrick { get; }
Property Value
FloralWhite
public static Vector4 FloralWhite { get; }
Property Value
ForestGreen
public static Vector4 ForestGreen { get; }
Property Value
Fuchsia
public static Vector4 Fuchsia { get; }
Property Value
Gainsboro
public static Vector4 Gainsboro { get; }
Property Value
GhostWhite
public static Vector4 GhostWhite { get; }
Property Value
Gold
public static Vector4 Gold { get; }
Property Value
Goldenrod
public static Vector4 Goldenrod { get; }
Property Value
Gray
public static Vector4 Gray { get; }
Property Value
Green
public static Vector4 Green { get; }
Property Value
GreenYellow
public static Vector4 GreenYellow { get; }
Property Value
Honeydew
public static Vector4 Honeydew { get; }
Property Value
HotPink
public static Vector4 HotPink { get; }
Property Value
IndianRed
public static Vector4 IndianRed { get; }
Property Value
Indigo
public static Vector4 Indigo { get; }
Property Value
Ivory
public static Vector4 Ivory { get; }
Property Value
Khaki
public static Vector4 Khaki { get; }
Property Value
Lavender
public static Vector4 Lavender { get; }
Property Value
LavenderBlush
public static Vector4 LavenderBlush { get; }
Property Value
LawnGreen
public static Vector4 LawnGreen { get; }
Property Value
LemonChiffon
public static Vector4 LemonChiffon { get; }
Property Value
LightBlue
public static Vector4 LightBlue { get; }
Property Value
LightCoral
public static Vector4 LightCoral { get; }
Property Value
LightCyan
public static Vector4 LightCyan { get; }
Property Value
LightGoldenrodYellow
public static Vector4 LightGoldenrodYellow { get; }
Property Value
LightGray
public static Vector4 LightGray { get; }
Property Value
LightGreen
public static Vector4 LightGreen { get; }
Property Value
LightPink
public static Vector4 LightPink { get; }
Property Value
LightSalmon
public static Vector4 LightSalmon { get; }
Property Value
LightSeaGreen
public static Vector4 LightSeaGreen { get; }
Property Value
LightSkyBlue
public static Vector4 LightSkyBlue { get; }
Property Value
LightSlateGray
public static Vector4 LightSlateGray { get; }
Property Value
LightSteelBlue
public static Vector4 LightSteelBlue { get; }
Property Value
Lime
public static Vector4 Lime { get; }
Property Value
LimeGreen
public static Vector4 LimeGreen { get; }
Property Value
Linen
public static Vector4 Linen { get; }
Property Value
Magenta
public static Vector4 Magenta { get; }
Property Value
Maroon
public static Vector4 Maroon { get; }
Property Value
MediumAquamarine
public static Vector4 MediumAquamarine { get; }
Property Value
MediumBlue
public static Vector4 MediumBlue { get; }
Property Value
MediumOrchid
public static Vector4 MediumOrchid { get; }
Property Value
MediumPurple
public static Vector4 MediumPurple { get; }
Property Value
MediumSeaGreen
public static Vector4 MediumSeaGreen { get; }
Property Value
MediumSlateBlue
public static Vector4 MediumSlateBlue { get; }
Property Value
MediumSpringGreen
public static Vector4 MediumSpringGreen { get; }
Property Value
MediumTurquoise
public static Vector4 MediumTurquoise { get; }
Property Value
MediumVioletRed
public static Vector4 MediumVioletRed { get; }
Property Value
MidnightBlue
public static Vector4 MidnightBlue { get; }
Property Value
MintCream
public static Vector4 MintCream { get; }
Property Value
MistyRose
public static Vector4 MistyRose { get; }
Property Value
Moccasin
public static Vector4 Moccasin { get; }
Property Value
NavajoWhite
public static Vector4 NavajoWhite { get; }
Property Value
Navy
public static Vector4 Navy { get; }
Property Value
OldLace
public static Vector4 OldLace { get; }
Property Value
Olive
public static Vector4 Olive { get; }
Property Value
OliveDrab
public static Vector4 OliveDrab { get; }
Property Value
Orange
public static Vector4 Orange { get; }
Property Value
OrangeRed
public static Vector4 OrangeRed { get; }
Property Value
Orchid
public static Vector4 Orchid { get; }
Property Value
PaleGoldenrod
public static Vector4 PaleGoldenrod { get; }
Property Value
PaleGreen
public static Vector4 PaleGreen { get; }
Property Value
PaleTurquoise
public static Vector4 PaleTurquoise { get; }
Property Value
PaleVioletRed
public static Vector4 PaleVioletRed { get; }
Property Value
PapayaWhip
public static Vector4 PapayaWhip { get; }
Property Value
PeachPuff
public static Vector4 PeachPuff { get; }
Property Value
Peru
public static Vector4 Peru { get; }
Property Value
Pink
public static Vector4 Pink { get; }
Property Value
Plum
public static Vector4 Plum { get; }
Property Value
PowderBlue
public static Vector4 PowderBlue { get; }
Property Value
Purple
public static Vector4 Purple { get; }
Property Value
Red
public static Vector4 Red { get; }
Property Value
RosyBrown
public static Vector4 RosyBrown { get; }
Property Value
RoyalBlue
public static Vector4 RoyalBlue { get; }
Property Value
SaddleBrown
public static Vector4 SaddleBrown { get; }
Property Value
Salmon
public static Vector4 Salmon { get; }
Property Value
SandyBrown
public static Vector4 SandyBrown { get; }
Property Value
SeaGreen
public static Vector4 SeaGreen { get; }
Property Value
Seashell
public static Vector4 Seashell { get; }
Property Value
Sienna
public static Vector4 Sienna { get; }
Property Value
Silver
public static Vector4 Silver { get; }
Property Value
SkyBlue
public static Vector4 SkyBlue { get; }
Property Value
SlateBlue
public static Vector4 SlateBlue { get; }
Property Value
SlateGray
public static Vector4 SlateGray { get; }
Property Value
Snow
public static Vector4 Snow { get; }
Property Value
SpringGreen
public static Vector4 SpringGreen { get; }
Property Value
SteelBlue
public static Vector4 SteelBlue { get; }
Property Value
Tan
public static Vector4 Tan { get; }
Property Value
Teal
public static Vector4 Teal { get; }
Property Value
Thistle
public static Vector4 Thistle { get; }
Property Value
Tomato
public static Vector4 Tomato { get; }
Property Value
Turquoise
public static Vector4 Turquoise { get; }
Property Value
Violet
public static Vector4 Violet { get; }
Property Value
Wheat
public static Vector4 Wheat { get; }
Property Value
White
public static Vector4 White { get; }
Property Value
WhiteSmoke
public static Vector4 WhiteSmoke { get; }
Property Value
Yellow
public static Vector4 Yellow { get; }
Property Value
YellowGreen
public static Vector4 YellowGreen { get; }
Property Value
Methods
FromHex(string)
Parse a hex string like "#RRGGBB" or "#RRGGBBAA" into a Vector4. Accepts "RRGGBB" or "RRGGBBAA" (with or without leading '#').
public static Vector4 FromHex(string hex)
Parameters
hexstring
Returns
FromRgb(byte, byte, byte, byte)
Create a Vector4 color from 0-255 RGB values and optional alpha (0..255).
public static Vector4 FromRgb(byte r, byte g, byte b, byte a = 255)
Parameters
Returns
Lerp(Vector4, Vector4, float)
Linearly interpolate between two colors (t in [0,1]).
public static Vector4 Lerp(Vector4 a, Vector4 b, float t)
Parameters
Returns
WithAlpha(Vector4, float)
Return a copy of color with modified alpha (0..1).
public static Vector4 WithAlpha(Vector4 color, float alpha)