19#pragma region Static Color Definitions
70 const Color
Color::Gray = Color(0.75f, 0.75f, 0.75f);
131 const Color
Color::Peru = Color(0.8f, 0.52f, 0.25f);
132 const Color
Color::Pink = Color(1.0f, 0.75f, 0.8f);
133 const Color
Color::Plum = Color(0.87f, 0.63f, 0.87f);
138 const Color
Color::Red = Color(1.0f, 0.0f, 0.0f);
151 const Color
Color::Snow = Color(1.0f, 0.98f, 0.98f);
154 const Color
Color::Tan = Color(0.82f, 0.71f, 0.55f);
168 Color::Color(
const float red,
const float green,
const float blue,
const float alpha)
178 if (value <= 0)
return start;
179 if (value >= 1)
return end;
181 float red =
Math::Lerp(start.red, end.red, value);
182 float green =
Math::Lerp(start.green, end.green, value);
183 float blue =
Math::Lerp(start.blue, end.blue, value);
184 float alpha =
Math::Lerp(start.alpha, end.alpha, value);
186 return Color(red, green, blue, alpha);
193 color.green *= scalar;
194 color.blue *= scalar;
195 color.alpha *= scalar;
201 return ((red == color.red) && (green == color.green)
202 && (blue == color.blue) && (alpha == color.alpha));
207 return !((red == color.red) && (green == color.green)
208 && (blue == color.blue) && (alpha == color.alpha));
Represents a four-component color using red, green, blue, and alpha data.
static const Color Plum
Plum.
static const Color PaleGreen
PaleGreen.
static const Color Lime
Lime.
static const Color PaleVioletRed
PaleVioletRed.
static const Color MediumPurple
MediumPurple.
static const Color LightSalmon
LightSalmon.
static const Color MidnightBlue
MidnightBlue.
static const Color WebPurple
WebPurple.
static const Color BlanchedAlmond
BlanchedAlmond.
static const Color Salmon
Salmon.
static const Color Purple
Purple.
static const Color Red
Red.
static const Color DarkGoldenrod
DarkGoldenrod.
static const Color Gray
Gray.
static const Color DarkViolet
DarkViolet.
bool operator==(const Color &color) const
Determines if two colors are equal.
static const Color Olive
Olive.
static const Color DarkSlateBlue
DarkSlateBlue.
static const Color MistyRose
MistyRose.
static const Color LightGreen
LightGreen.
static const Color LimeGreen
LimeGreen.
static const Color OliveDrab
OliveDrab.
static const Color SkyBlue
SkyBlue.
static const Color MediumSeaGreen
MediumSeaGreen.
static const Color Pink
Pink.
static const Color LightPink
LightPink.
static const Color DarkTurquoise
DarkTurquoise.
static const Color DarkCyan
DarkCyan.
static const Color DarkKhaki
DarkKhaki.
static const Color Black
Black.
static const Color LightYellow
LightYellow.
static const Color DeepPink
DeepPink.
static const Color Thistle
Thistle.
static const Color Honeydew
Honeydew.
static const Color Teal
Teal.
static const Color Orange
Orange.
static const Color Green
Green.
static const Color MediumBlue
MediumBlue.
static const Color AliceBlue
AliceBlue.
static const Color DarkBlue
DarkBlue.
static const Color Lavender
Lavender.
static const Color MediumOrchid
MediumOrchid.
static const Color NavajoWhite
NavajoWhite.
static const Color DimGray
DimGray.
static const Color WebMaroon
WebMaroon.
static const Color Aquamarine
Aquamarine.
static const Color DarkGreen
DarkGreen.
static const Color Ivory
Ivory.
static const Color DarkOrchid
DarkOrchid.
static const Color MediumSpringGreen
MediumSpringGreen.
static const Color Chartreuse
Chartreuse.
static const Color LightSkyBlue
LightSkyBlue.
static const Color Wheat
Wheat.
static const Color Beige
Beige.
static const Color LightGray
LightGray.
static const Color Chocolate
Chocolate.
static const Color WebGray
WebGray.
static const Color MediumTurquoise
MediumTurquoise.
static const Color LavenderBlush
LavenderBlush.
static const Color Goldenrod
Goldenrod.
static const Color NavyBlue
NavyBlue.
static const Color SeaGreen
SeaGreen.
static const Color DarkSeaGreen
DarkSeaGreen.
static const Color FloralWhite
FloralWhite.
static const Color DarkOliveGreen
DarkOliveGreen.
static const Color DarkOrange
DarkOrange.
static const Color Firebrick
Firebrick.
static const Color ForestGreen
ForestGreen.
static const Color LightBlue
LightBlue.
static const Color Gold
Gold.
static const Color YellowGreen
YellowGreen.
static const Color Snow
Snow.
static const Color DarkRed
DarkRed.
static const Color AntiqueWhite
AntiqueWhite.
static const Color Blue
Blue.
static const Color SpringGreen
SpringGreen.
static const Color LightCoral
LightCoral.
static const Color IndianRed
IndianRed.
static const Color PaleGoldenrod
PaleGoldenrod.
static const Color Orchid
Orchid.
static const Color Cornsilk
Cornsilk.
static const Color CadetBlue
CadetBlue.
static const Color Tomato
Tomato.
static const Color SlateBlue
SlateBlue.
const Color operator*(const float scalar) const
Multiplies each component by a scale factor.
static const Color Brown
Brown.
static const Color DeepSkyBlue
DeepSkyBlue.
static const Color GreenYellow
GreenYellow.
static Color Lerp(const Color &start, const Color &end, const float value)
Linearly interpolate between two colors.
static const Color Seashell
Seashell.
Color(const float red=1, const float green=1, const float blue=1, const float alpha=1)
Instantiate a color object.
static const Color Burlywood
Burlywood.
static const Color SaddleBrown
SaddleBrown.
static const Color Aqua
Aqua.
static const Color WebGreen
WebGreen.
static const Color WhiteSmoke
WhiteSmoke.
static const Color Cornflower
Cornflower.
static const Color MediumVioletRed
MediumVioletRed.
static const Color LightSteelBlue
LightSteelBlue.
static const Color SandyBrown
SandyBrown.
static const Color PaleTurquoise
PaleTurquoise.
static const Color PeachPuff
PeachPuff.
static const Color Khaki
Khaki.
static const Color LightSeaGreen
LightSeaGreen.
static const Color Turquoise
Turquoise.
static const Color PowderBlue
PowderBlue.
static const Color LightCyan
LightCyan.
static const Color Peru
Peru.
static const Color LawnGreen
LawnGreen.
static const Color SteelBlue
SteelBlue.
static const Color MediumSlateBlue
MediumSlateBlue.
static const Color DarkSalmon
DarkSalmon.
static const Color DarkMagenta
DarkMagenta.
static const Color DarkSlateGray
DarkSlateGray.
static const Color Moccasin
Moccasin.
static const Color GhostWhite
GhostWhite.
static const Color Maroon
Maroon.
static const Color Fuchsia
Fuchsia.
static const Color Crimson
Crimson.
static const Color Indigo
Indigo.
static const Color Magenta
Magenta.
static const Color Yellow
Yellow.
static const Color Sienna
Sienna.
static const Color LightGoldenrod
LightGoldenrod.
static const Color RebeccaPurple
RebeccaPurple.
static const Color PapayaWhip
PapayaWhip.
static const Color OrangeRed
OrangeRed.
static const Color Azure
Azure.
static const Color White
White.
bool operator!=(const Color &color) const
Determines if two colors are not equal.
static const Color SlateGray
SlateGray.
static const Color Coral
Coral.
static const Color Silver
Silver.
static const Color RosyBrown
RosyBrown.
static const Color Violet
Violet.
static const Color OldLace
OldLace.
static const Color DodgerBlue
DodgerBlue.
static const Color MediumAquamarine
MediumAquamarine.
static const Color HotPink
HotPink.
static const Color LightSlateGray
LightSlateGray.
static const Color MintCream
MintCream.
static const Color Tan
Tan.
static const Color RoyalBlue
RoyalBlue.
static const Color Bisque
Bisque.
static const Color LemonChiffon
LemonChiffon.
static const Color BlueViolet
BlueViolet.
static const Color DarkGray
DarkGray.
static const Color Cyan
Cyan.
static const Color Linen
Linen.
static const Color Gainsboro
Gainsboro.
static float Lerp(float start, float end, float value)
Linearly interpolate between two values.
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...