WPILibC++ 2024.3.2
frc::Color Class Reference

Represents colors that can be used with Addressable LEDs. More...

#include <frc/util/Color.h>

Public Member Functions

constexpr Color ()=default
 Constructs a default color (black). More...
 
constexpr Color (double r, double g, double b)
 Constructs a Color from doubles (0-1). More...
 
constexpr Color (int r, int g, int b)
 Constructs a Color from ints (0-255). More...
 
constexpr Color (std::string_view hexString)
 Constructs a Color from a hex string. More...
 
constexpr bool operator== (const Color &) const =default
 
constexpr auto HexString () const
 Return this color represented as a hex string. More...
 

Static Public Member Functions

static constexpr Color FromHSV (int h, int s, int v)
 Creates a Color from HSV values. More...
 

Public Attributes

double red = 0.0
 Red component (0-1). More...
 
double green = 0.0
 Green component (0-1). More...
 
double blue = 0.0
 Blue component (0-1). More...
 

Static Public Attributes

static const Color kDenim {0.0823529412, 0.376470589, 0.7411764706}
 0x1560BD. More...
 
static const Color kFirstBlue {0.0, 0.4, 0.7019607844}
 0x0066B3. More...
 
static const Color kFirstRed
 0xED1C24. More...
 
static const Color kAliceBlue {0.9411765f, 0.972549f, 1.0f}
 0xF0F8FF. More...
 
static const Color kAntiqueWhite
 0xFAEBD7. More...
 
static const Color kAqua {0.0f, 1.0f, 1.0f}
 0x00FFFF. More...
 
static const Color kAquamarine {0.49803922f, 1.0f, 0.83137256f}
 0x7FFFD4. More...
 
static const Color kAzure {0.9411765f, 1.0f, 1.0f}
 0xF0FFFF. More...
 
static const Color kBeige {0.9607843f, 0.9607843f, 0.8627451f}
 0xF5F5DC. More...
 
static const Color kBisque {1.0f, 0.89411765f, 0.76862746f}
 0xFFE4C4. More...
 
static const Color kBlack {0.0f, 0.0f, 0.0f}
 0x000000. More...
 
static const Color kBlanchedAlmond {1.0f, 0.92156863f, 0.8039216f}
 0xFFEBCD. More...
 
static const Color kBlue {0.0f, 0.0f, 1.0f}
 0x0000FF. More...
 
static const Color kBlueViolet {0.5411765f, 0.16862746f, 0.8862745f}
 0x8A2BE2. More...
 
static const Color kBrown {0.64705884f, 0.16470589f, 0.16470589f}
 0xA52A2A. More...
 
static const Color kBurlywood {0.87058824f, 0.72156864f, 0.5294118f}
 0xDEB887. More...
 
static const Color kCadetBlue {0.37254903f, 0.61960787f, 0.627451f}
 0x5F9EA0. More...
 
static const Color kChartreuse {0.49803922f, 1.0f, 0.0f}
 0x7FFF00. More...
 
static const Color kChocolate {0.8235294f, 0.4117647f, 0.11764706f}
 0xD2691E. More...
 
static const Color kCoral {1.0f, 0.49803922f, 0.3137255f}
 0xFF7F50. More...
 
static const Color kCornflowerBlue
 0x6495ED. More...
 
static const Color kCornsilk {1.0f, 0.972549f, 0.8627451f}
 0xFFF8DC. More...
 
static const Color kCrimson {0.8627451f, 0.078431375f, 0.23529412f}
 0xDC143C. More...
 
static const Color kCyan {0.0f, 1.0f, 1.0f}
 0x00FFFF. More...
 
static const Color kDarkBlue {0.0f, 0.0f, 0.54509807f}
 0x00008B. More...
 
static const Color kDarkCyan {0.0f, 0.54509807f, 0.54509807f}
 0x008B8B. More...
 
static const Color kDarkGoldenrod
 0xB8860B. More...
 
static const Color kDarkGray {0.6627451f, 0.6627451f, 0.6627451f}
 0xA9A9A9. More...
 
static const Color kDarkGreen {0.0f, 0.39215687f, 0.0f}
 0x006400. More...
 
static const Color kDarkKhaki {0.7411765f, 0.7176471f, 0.41960785f}
 0xBDB76B. More...
 
static const Color kDarkMagenta {0.54509807f, 0.0f, 0.54509807f}
 0x8B008B. More...
 
static const Color kDarkOliveGreen
 0x556B2F. More...
 
static const Color kDarkOrange {1.0f, 0.54901963f, 0.0f}
 0xFF8C00. More...
 
static const Color kDarkOrchid {0.6f, 0.19607843f, 0.8f}
 0x9932CC. More...
 
static const Color kDarkRed {0.54509807f, 0.0f, 0.0f}
 0x8B0000. More...
 
static const Color kDarkSalmon {0.9137255f, 0.5882353f, 0.47843137f}
 0xE9967A. More...
 
static const Color kDarkSeaGreen
 0x8FBC8F. More...
 
static const Color kDarkSlateBlue
 0x483D8B. More...
 
static const Color kDarkSlateGray
 0x2F4F4F. More...
 
static const Color kDarkTurquoise {0.0f, 0.80784315f, 0.81960785f}
 0x00CED1. More...
 
static const Color kDarkViolet {0.5803922f, 0.0f, 0.827451f}
 0x9400D3. More...
 
static const Color kDeepPink {1.0f, 0.078431375f, 0.5764706f}
 0xFF1493. More...
 
static const Color kDeepSkyBlue {0.0f, 0.7490196f, 1.0f}
 0x00BFFF. More...
 
static const Color kDimGray {0.4117647f, 0.4117647f, 0.4117647f}
 0x696969. More...
 
static const Color kDodgerBlue {0.11764706f, 0.5647059f, 1.0f}
 0x1E90FF. More...
 
static const Color kFirebrick {0.69803923f, 0.13333334f, 0.13333334f}
 0xB22222. More...
 
static const Color kFloralWhite {1.0f, 0.98039216f, 0.9411765f}
 0xFFFAF0. More...
 
static const Color kForestGreen
 0x228B22. More...
 
static const Color kFuchsia {1.0f, 0.0f, 1.0f}
 0xFF00FF. More...
 
static const Color kGainsboro {0.8627451f, 0.8627451f, 0.8627451f}
 0xDCDCDC. More...
 
static const Color kGhostWhite {0.972549f, 0.972549f, 1.0f}
 0xF8F8FF. More...
 
static const Color kGold {1.0f, 0.84313726f, 0.0f}
 0xFFD700. More...
 
static const Color kGoldenrod {0.85490197f, 0.64705884f, 0.1254902f}
 0xDAA520. More...
 
static const Color kGray {0.5019608f, 0.5019608f, 0.5019608f}
 0x808080. More...
 
static const Color kGreen {0.0f, 0.5019608f, 0.0f}
 0x008000. More...
 
static const Color kGreenYellow {0.6784314f, 1.0f, 0.18431373f}
 0xADFF2F. More...
 
static const Color kHoneydew {0.9411765f, 1.0f, 0.9411765f}
 0xF0FFF0. More...
 
static const Color kHotPink {1.0f, 0.4117647f, 0.7058824f}
 0xFF69B4. More...
 
static const Color kIndianRed {0.8039216f, 0.36078432f, 0.36078432f}
 0xCD5C5C. More...
 
static const Color kIndigo {0.29411766f, 0.0f, 0.50980395f}
 0x4B0082. More...
 
static const Color kIvory {1.0f, 1.0f, 0.9411765f}
 0xFFFFF0. More...
 
static const Color kKhaki {0.9411765f, 0.9019608f, 0.54901963f}
 0xF0E68C. More...
 
static const Color kLavender {0.9019608f, 0.9019608f, 0.98039216f}
 0xE6E6FA. More...
 
static const Color kLavenderBlush {1.0f, 0.9411765f, 0.9607843f}
 0xFFF0F5. More...
 
static const Color kLawnGreen {0.4862745f, 0.9882353f, 0.0f}
 0x7CFC00. More...
 
static const Color kLemonChiffon {1.0f, 0.98039216f, 0.8039216f}
 0xFFFACD. More...
 
static const Color kLightBlue {0.6784314f, 0.84705883f, 0.9019608f}
 0xADD8E6. More...
 
static const Color kLightCoral {0.9411765f, 0.5019608f, 0.5019608f}
 0xF08080. More...
 
static const Color kLightCyan {0.8784314f, 1.0f, 1.0f}
 0xE0FFFF. More...
 
static const Color kLightGoldenrodYellow
 0xFAFAD2. More...
 
static const Color kLightGray {0.827451f, 0.827451f, 0.827451f}
 0xD3D3D3. More...
 
static const Color kLightGreen {0.5647059f, 0.93333334f, 0.5647059f}
 0x90EE90. More...
 
static const Color kLightPink {1.0f, 0.7137255f, 0.75686276f}
 0xFFB6C1. More...
 
static const Color kLightSalmon {1.0f, 0.627451f, 0.47843137f}
 0xFFA07A. More...
 
static const Color kLightSeaGreen
 0x20B2AA. More...
 
static const Color kLightSkyBlue
 0x87CEFA. More...
 
static const Color kLightSlateGray {0.46666667f, 0.53333336f, 0.6f}
 0x778899. More...
 
static const Color kLightSteelBlue
 0xB0C4DE. More...
 
static const Color kLightYellow {1.0f, 1.0f, 0.8784314f}
 0xFFFFE0. More...
 
static const Color kLime {0.0f, 1.0f, 0.0f}
 0x00FF00. More...
 
static const Color kLimeGreen {0.19607843f, 0.8039216f, 0.19607843f}
 0x32CD32. More...
 
static const Color kLinen {0.98039216f, 0.9411765f, 0.9019608f}
 0xFAF0E6. More...
 
static const Color kMagenta {1.0f, 0.0f, 1.0f}
 0xFF00FF. More...
 
static const Color kMaroon {0.5019608f, 0.0f, 0.0f}
 0x800000. More...
 
static const Color kMediumAquamarine {0.4f, 0.8039216f, 0.6666667f}
 0x66CDAA. More...
 
static const Color kMediumBlue {0.0f, 0.0f, 0.8039216f}
 0x0000CD. More...
 
static const Color kMediumOrchid {0.7294118f, 0.33333334f, 0.827451f}
 0xBA55D3. More...
 
static const Color kMediumPurple
 0x9370DB. More...
 
static const Color kMediumSeaGreen
 0x3CB371. More...
 
static const Color kMediumSlateBlue
 0x7B68EE. More...
 
static const Color kMediumSpringGreen {0.0f, 0.98039216f, 0.6039216f}
 0x00FA9A. More...
 
static const Color kMediumTurquoise {0.28235295f, 0.81960785f, 0.8f}
 0x48D1CC. More...
 
static const Color kMediumVioletRed
 0xC71585. More...
 
static const Color kMidnightBlue
 0x191970. More...
 
static const Color kMintcream {0.9607843f, 1.0f, 0.98039216f}
 0xF5FFFA. More...
 
static const Color kMistyRose {1.0f, 0.89411765f, 0.88235295f}
 0xFFE4E1. More...
 
static const Color kMoccasin {1.0f, 0.89411765f, 0.70980394f}
 0xFFE4B5. More...
 
static const Color kNavajoWhite {1.0f, 0.87058824f, 0.6784314f}
 0xFFDEAD. More...
 
static const Color kNavy {0.0f, 0.0f, 0.5019608f}
 0x000080. More...
 
static const Color kOldLace {0.99215686f, 0.9607843f, 0.9019608f}
 0xFDF5E6. More...
 
static const Color kOlive {0.5019608f, 0.5019608f, 0.0f}
 0x808000. More...
 
static const Color kOliveDrab {0.41960785f, 0.5568628f, 0.13725491f}
 0x6B8E23. More...
 
static const Color kOrange {1.0f, 0.64705884f, 0.0f}
 0xFFA500. More...
 
static const Color kOrangeRed {1.0f, 0.27058825f, 0.0f}
 0xFF4500. More...
 
static const Color kOrchid {0.85490197f, 0.4392157f, 0.8392157f}
 0xDA70D6. More...
 
static const Color kPaleGoldenrod
 0xEEE8AA. More...
 
static const Color kPaleGreen {0.59607846f, 0.9843137f, 0.59607846f}
 0x98FB98. More...
 
static const Color kPaleTurquoise
 0xAFEEEE. More...
 
static const Color kPaleVioletRed
 0xDB7093. More...
 
static const Color kPapayaWhip {1.0f, 0.9372549f, 0.8352941f}
 0xFFEFD5. More...
 
static const Color kPeachPuff {1.0f, 0.85490197f, 0.7254902f}
 0xFFDAB9. More...
 
static const Color kPeru {0.8039216f, 0.52156866f, 0.24705882f}
 0xCD853F. More...
 
static const Color kPink {1.0f, 0.7529412f, 0.79607844f}
 0xFFC0CB. More...
 
static const Color kPlum {0.8666667f, 0.627451f, 0.8666667f}
 0xDDA0DD. More...
 
static const Color kPowderBlue {0.6901961f, 0.8784314f, 0.9019608f}
 0xB0E0E6. More...
 
static const Color kPurple {0.5019608f, 0.0f, 0.5019608f}
 0x800080. More...
 
static const Color kRed {1.0f, 0.0f, 0.0f}
 0xFF0000. More...
 
static const Color kRosyBrown {0.7372549f, 0.56078434f, 0.56078434f}
 0xBC8F8F. More...
 
static const Color kRoyalBlue {0.25490198f, 0.4117647f, 0.88235295f}
 0x4169E1. More...
 
static const Color kSaddleBrown
 0x8B4513. More...
 
static const Color kSalmon {0.98039216f, 0.5019608f, 0.44705883f}
 0xFA8072. More...
 
static const Color kSandyBrown {0.95686275f, 0.6431373f, 0.3764706f}
 0xF4A460. More...
 
static const Color kSeaGreen {0.18039216f, 0.54509807f, 0.34117648f}
 0x2E8B57. More...
 
static const Color kSeashell {1.0f, 0.9607843f, 0.93333334f}
 0xFFF5EE. More...
 
static const Color kSienna {0.627451f, 0.32156864f, 0.1764706f}
 0xA0522D. More...
 
static const Color kSilver {0.7529412f, 0.7529412f, 0.7529412f}
 0xC0C0C0. More...
 
static const Color kSkyBlue {0.5294118f, 0.80784315f, 0.92156863f}
 0x87CEEB. More...
 
static const Color kSlateBlue {0.41568628f, 0.3529412f, 0.8039216f}
 0x6A5ACD. More...
 
static const Color kSlateGray {0.4392157f, 0.5019608f, 0.5647059f}
 0x708090. More...
 
static const Color kSnow {1.0f, 0.98039216f, 0.98039216f}
 0xFFFAFA. More...
 
static const Color kSpringGreen {0.0f, 1.0f, 0.49803922f}
 0x00FF7F. More...
 
static const Color kSteelBlue {0.27450982f, 0.50980395f, 0.7058824f}
 0x4682B4. More...
 
static const Color kTan {0.8235294f, 0.7058824f, 0.54901963f}
 0xD2B48C. More...
 
static const Color kTeal {0.0f, 0.5019608f, 0.5019608f}
 0x008080. More...
 
static const Color kThistle {0.84705883f, 0.7490196f, 0.84705883f}
 0xD8BFD8. More...
 
static const Color kTomato {1.0f, 0.3882353f, 0.2784314f}
 0xFF6347. More...
 
static const Color kTurquoise {0.2509804f, 0.8784314f, 0.8156863f}
 0x40E0D0. More...
 
static const Color kViolet {0.93333334f, 0.50980395f, 0.93333334f}
 0xEE82EE. More...
 
static const Color kWheat {0.9607843f, 0.87058824f, 0.7019608f}
 0xF5DEB3. More...
 
static const Color kWhite {1.0f, 1.0f, 1.0f}
 0xFFFFFF. More...
 
static const Color kWhiteSmoke {0.9607843f, 0.9607843f, 0.9607843f}
 0xF5F5F5. More...
 
static const Color kYellow {1.0f, 1.0f, 0.0f}
 0xFFFF00. More...
 
static const Color kYellowGreen {0.6039216f, 0.8039216f, 0.19607843f}
 0x9ACD32. More...
 

Detailed Description

Represents colors that can be used with Addressable LEDs.

Limited to 12 bits of precision.

Constructor & Destructor Documentation

◆ Color() [1/4]

constexpr frc::Color::Color ( )
constexprdefault

Constructs a default color (black).

◆ Color() [2/4]

constexpr frc::Color::Color ( double  r,
double  g,
double  b 
)
inlineconstexpr

Constructs a Color from doubles (0-1).

Parameters
rRed value (0-1)
gGreen value (0-1)
bBlue value (0-1)

◆ Color() [3/4]

constexpr frc::Color::Color ( int  r,
int  g,
int  b 
)
inlineconstexpr

Constructs a Color from ints (0-255).

Parameters
rRed value (0-255)
gGreen value (0-255)
bBlue value (0-255)

◆ Color() [4/4]

constexpr frc::Color::Color ( std::string_view  hexString)
inlineexplicitconstexpr

Constructs a Color from a hex string.

Parameters
hexStringa string of the format #RRGGBB
Exceptions
std::invalid_argumentif the hex string is invalid.

Member Function Documentation

◆ FromHSV()

static constexpr Color frc::Color::FromHSV ( int  h,
int  s,
int  v 
)
inlinestaticconstexpr

Creates a Color from HSV values.

Parameters
hThe h value [0-180)
sThe s value [0-255]
vThe v value [0-255]
Returns
The color

◆ HexString()

constexpr auto frc::Color::HexString ( ) const
inlineconstexpr

Return this color represented as a hex string.

Returns
a string of the format #RRGGBB

◆ operator==()

constexpr bool frc::Color::operator== ( const Color ) const
constexprdefault

Member Data Documentation

◆ blue

double frc::Color::blue = 0.0

Blue component (0-1).

◆ green

double frc::Color::green = 0.0

Green component (0-1).

◆ kAliceBlue

constexpr Color frc::Color::kAliceBlue {0.9411765f, 0.972549f, 1.0f}
inlinestaticconstexpr

0xF0F8FF.

◆ kAntiqueWhite

constexpr Color frc::Color::kAntiqueWhite
inlinestaticconstexpr
Initial value:
{0.98039216f, 0.92156863f,
0.84313726f}

0xFAEBD7.

◆ kAqua

constexpr Color frc::Color::kAqua {0.0f, 1.0f, 1.0f}
inlinestaticconstexpr

0x00FFFF.

◆ kAquamarine

constexpr Color frc::Color::kAquamarine {0.49803922f, 1.0f, 0.83137256f}
inlinestaticconstexpr

0x7FFFD4.

◆ kAzure

constexpr Color frc::Color::kAzure {0.9411765f, 1.0f, 1.0f}
inlinestaticconstexpr

0xF0FFFF.

◆ kBeige

constexpr Color frc::Color::kBeige {0.9607843f, 0.9607843f, 0.8627451f}
inlinestaticconstexpr

0xF5F5DC.

◆ kBisque

constexpr Color frc::Color::kBisque {1.0f, 0.89411765f, 0.76862746f}
inlinestaticconstexpr

0xFFE4C4.

◆ kBlack

constexpr Color frc::Color::kBlack {0.0f, 0.0f, 0.0f}
inlinestaticconstexpr

0x000000.

◆ kBlanchedAlmond

constexpr Color frc::Color::kBlanchedAlmond {1.0f, 0.92156863f, 0.8039216f}
inlinestaticconstexpr

0xFFEBCD.

◆ kBlue

constexpr Color frc::Color::kBlue {0.0f, 0.0f, 1.0f}
inlinestaticconstexpr

0x0000FF.

◆ kBlueViolet

constexpr Color frc::Color::kBlueViolet {0.5411765f, 0.16862746f, 0.8862745f}
inlinestaticconstexpr

0x8A2BE2.

◆ kBrown

constexpr Color frc::Color::kBrown {0.64705884f, 0.16470589f, 0.16470589f}
inlinestaticconstexpr

0xA52A2A.

◆ kBurlywood

constexpr Color frc::Color::kBurlywood {0.87058824f, 0.72156864f, 0.5294118f}
inlinestaticconstexpr

0xDEB887.

◆ kCadetBlue

constexpr Color frc::Color::kCadetBlue {0.37254903f, 0.61960787f, 0.627451f}
inlinestaticconstexpr

0x5F9EA0.

◆ kChartreuse

constexpr Color frc::Color::kChartreuse {0.49803922f, 1.0f, 0.0f}
inlinestaticconstexpr

0x7FFF00.

◆ kChocolate

constexpr Color frc::Color::kChocolate {0.8235294f, 0.4117647f, 0.11764706f}
inlinestaticconstexpr

0xD2691E.

◆ kCoral

constexpr Color frc::Color::kCoral {1.0f, 0.49803922f, 0.3137255f}
inlinestaticconstexpr

0xFF7F50.

◆ kCornflowerBlue

constexpr Color frc::Color::kCornflowerBlue
inlinestaticconstexpr
Initial value:
{0.39215687f, 0.58431375f,
0.92941177f}

0x6495ED.

◆ kCornsilk

constexpr Color frc::Color::kCornsilk {1.0f, 0.972549f, 0.8627451f}
inlinestaticconstexpr

0xFFF8DC.

◆ kCrimson

constexpr Color frc::Color::kCrimson {0.8627451f, 0.078431375f, 0.23529412f}
inlinestaticconstexpr

0xDC143C.

◆ kCyan

constexpr Color frc::Color::kCyan {0.0f, 1.0f, 1.0f}
inlinestaticconstexpr

0x00FFFF.

◆ kDarkBlue

constexpr Color frc::Color::kDarkBlue {0.0f, 0.0f, 0.54509807f}
inlinestaticconstexpr

0x00008B.

◆ kDarkCyan

constexpr Color frc::Color::kDarkCyan {0.0f, 0.54509807f, 0.54509807f}
inlinestaticconstexpr

0x008B8B.

◆ kDarkGoldenrod

constexpr Color frc::Color::kDarkGoldenrod
inlinestaticconstexpr
Initial value:
{0.72156864f, 0.5254902f,
0.043137256f}

0xB8860B.

◆ kDarkGray

constexpr Color frc::Color::kDarkGray {0.6627451f, 0.6627451f, 0.6627451f}
inlinestaticconstexpr

0xA9A9A9.

◆ kDarkGreen

constexpr Color frc::Color::kDarkGreen {0.0f, 0.39215687f, 0.0f}
inlinestaticconstexpr

0x006400.

◆ kDarkKhaki

constexpr Color frc::Color::kDarkKhaki {0.7411765f, 0.7176471f, 0.41960785f}
inlinestaticconstexpr

0xBDB76B.

◆ kDarkMagenta

constexpr Color frc::Color::kDarkMagenta {0.54509807f, 0.0f, 0.54509807f}
inlinestaticconstexpr

0x8B008B.

◆ kDarkOliveGreen

constexpr Color frc::Color::kDarkOliveGreen
inlinestaticconstexpr
Initial value:
{0.33333334f, 0.41960785f,
0.18431373f}

0x556B2F.

◆ kDarkOrange

constexpr Color frc::Color::kDarkOrange {1.0f, 0.54901963f, 0.0f}
inlinestaticconstexpr

0xFF8C00.

◆ kDarkOrchid

constexpr Color frc::Color::kDarkOrchid {0.6f, 0.19607843f, 0.8f}
inlinestaticconstexpr

0x9932CC.

◆ kDarkRed

constexpr Color frc::Color::kDarkRed {0.54509807f, 0.0f, 0.0f}
inlinestaticconstexpr

0x8B0000.

◆ kDarkSalmon

constexpr Color frc::Color::kDarkSalmon {0.9137255f, 0.5882353f, 0.47843137f}
inlinestaticconstexpr

0xE9967A.

◆ kDarkSeaGreen

constexpr Color frc::Color::kDarkSeaGreen
inlinestaticconstexpr
Initial value:
{0.56078434f, 0.7372549f,
0.56078434f}

0x8FBC8F.

◆ kDarkSlateBlue

constexpr Color frc::Color::kDarkSlateBlue
inlinestaticconstexpr
Initial value:
{0.28235295f, 0.23921569f,
0.54509807f}

0x483D8B.

◆ kDarkSlateGray

constexpr Color frc::Color::kDarkSlateGray
inlinestaticconstexpr
Initial value:
{0.18431373f, 0.30980393f,
0.30980393f}

0x2F4F4F.

◆ kDarkTurquoise

constexpr Color frc::Color::kDarkTurquoise {0.0f, 0.80784315f, 0.81960785f}
inlinestaticconstexpr

0x00CED1.

◆ kDarkViolet

constexpr Color frc::Color::kDarkViolet {0.5803922f, 0.0f, 0.827451f}
inlinestaticconstexpr

0x9400D3.

◆ kDeepPink

constexpr Color frc::Color::kDeepPink {1.0f, 0.078431375f, 0.5764706f}
inlinestaticconstexpr

0xFF1493.

◆ kDeepSkyBlue

constexpr Color frc::Color::kDeepSkyBlue {0.0f, 0.7490196f, 1.0f}
inlinestaticconstexpr

0x00BFFF.

◆ kDenim

constexpr Color frc::Color::kDenim {0.0823529412, 0.376470589, 0.7411764706}
inlinestaticconstexpr

0x1560BD.

◆ kDimGray

constexpr Color frc::Color::kDimGray {0.4117647f, 0.4117647f, 0.4117647f}
inlinestaticconstexpr

0x696969.

◆ kDodgerBlue

constexpr Color frc::Color::kDodgerBlue {0.11764706f, 0.5647059f, 1.0f}
inlinestaticconstexpr

0x1E90FF.

◆ kFirebrick

constexpr Color frc::Color::kFirebrick {0.69803923f, 0.13333334f, 0.13333334f}
inlinestaticconstexpr

0xB22222.

◆ kFirstBlue

constexpr Color frc::Color::kFirstBlue {0.0, 0.4, 0.7019607844}
inlinestaticconstexpr

0x0066B3.

◆ kFirstRed

constexpr Color frc::Color::kFirstRed
inlinestaticconstexpr
Initial value:
{0.9294117648, 0.1098039216,
0.1411764706}

0xED1C24.

◆ kFloralWhite

constexpr Color frc::Color::kFloralWhite {1.0f, 0.98039216f, 0.9411765f}
inlinestaticconstexpr

0xFFFAF0.

◆ kForestGreen

constexpr Color frc::Color::kForestGreen
inlinestaticconstexpr
Initial value:
{0.13333334f, 0.54509807f,
0.13333334f}

0x228B22.

◆ kFuchsia

constexpr Color frc::Color::kFuchsia {1.0f, 0.0f, 1.0f}
inlinestaticconstexpr

0xFF00FF.

◆ kGainsboro

constexpr Color frc::Color::kGainsboro {0.8627451f, 0.8627451f, 0.8627451f}
inlinestaticconstexpr

0xDCDCDC.

◆ kGhostWhite

constexpr Color frc::Color::kGhostWhite {0.972549f, 0.972549f, 1.0f}
inlinestaticconstexpr

0xF8F8FF.

◆ kGold

constexpr Color frc::Color::kGold {1.0f, 0.84313726f, 0.0f}
inlinestaticconstexpr

0xFFD700.

◆ kGoldenrod

constexpr Color frc::Color::kGoldenrod {0.85490197f, 0.64705884f, 0.1254902f}
inlinestaticconstexpr

0xDAA520.

◆ kGray

constexpr Color frc::Color::kGray {0.5019608f, 0.5019608f, 0.5019608f}
inlinestaticconstexpr

0x808080.

◆ kGreen

constexpr Color frc::Color::kGreen {0.0f, 0.5019608f, 0.0f}
inlinestaticconstexpr

0x008000.

◆ kGreenYellow

constexpr Color frc::Color::kGreenYellow {0.6784314f, 1.0f, 0.18431373f}
inlinestaticconstexpr

0xADFF2F.

◆ kHoneydew

constexpr Color frc::Color::kHoneydew {0.9411765f, 1.0f, 0.9411765f}
inlinestaticconstexpr

0xF0FFF0.

◆ kHotPink

constexpr Color frc::Color::kHotPink {1.0f, 0.4117647f, 0.7058824f}
inlinestaticconstexpr

0xFF69B4.

◆ kIndianRed

constexpr Color frc::Color::kIndianRed {0.8039216f, 0.36078432f, 0.36078432f}
inlinestaticconstexpr

0xCD5C5C.

◆ kIndigo

constexpr Color frc::Color::kIndigo {0.29411766f, 0.0f, 0.50980395f}
inlinestaticconstexpr

0x4B0082.

◆ kIvory

constexpr Color frc::Color::kIvory {1.0f, 1.0f, 0.9411765f}
inlinestaticconstexpr

0xFFFFF0.

◆ kKhaki

constexpr Color frc::Color::kKhaki {0.9411765f, 0.9019608f, 0.54901963f}
inlinestaticconstexpr

0xF0E68C.

◆ kLavender

constexpr Color frc::Color::kLavender {0.9019608f, 0.9019608f, 0.98039216f}
inlinestaticconstexpr

0xE6E6FA.

◆ kLavenderBlush

constexpr Color frc::Color::kLavenderBlush {1.0f, 0.9411765f, 0.9607843f}
inlinestaticconstexpr

0xFFF0F5.

◆ kLawnGreen

constexpr Color frc::Color::kLawnGreen {0.4862745f, 0.9882353f, 0.0f}
inlinestaticconstexpr

0x7CFC00.

◆ kLemonChiffon

constexpr Color frc::Color::kLemonChiffon {1.0f, 0.98039216f, 0.8039216f}
inlinestaticconstexpr

0xFFFACD.

◆ kLightBlue

constexpr Color frc::Color::kLightBlue {0.6784314f, 0.84705883f, 0.9019608f}
inlinestaticconstexpr

0xADD8E6.

◆ kLightCoral

constexpr Color frc::Color::kLightCoral {0.9411765f, 0.5019608f, 0.5019608f}
inlinestaticconstexpr

0xF08080.

◆ kLightCyan

constexpr Color frc::Color::kLightCyan {0.8784314f, 1.0f, 1.0f}
inlinestaticconstexpr

0xE0FFFF.

◆ kLightGoldenrodYellow

constexpr Color frc::Color::kLightGoldenrodYellow
inlinestaticconstexpr
Initial value:
{0.98039216f, 0.98039216f,
0.8235294f}

0xFAFAD2.

◆ kLightGray

constexpr Color frc::Color::kLightGray {0.827451f, 0.827451f, 0.827451f}
inlinestaticconstexpr

0xD3D3D3.

◆ kLightGreen

constexpr Color frc::Color::kLightGreen {0.5647059f, 0.93333334f, 0.5647059f}
inlinestaticconstexpr

0x90EE90.

◆ kLightPink

constexpr Color frc::Color::kLightPink {1.0f, 0.7137255f, 0.75686276f}
inlinestaticconstexpr

0xFFB6C1.

◆ kLightSalmon

constexpr Color frc::Color::kLightSalmon {1.0f, 0.627451f, 0.47843137f}
inlinestaticconstexpr

0xFFA07A.

◆ kLightSeaGreen

constexpr Color frc::Color::kLightSeaGreen
inlinestaticconstexpr
Initial value:
{0.1254902f, 0.69803923f,
0.6666667f}

0x20B2AA.

◆ kLightSkyBlue

constexpr Color frc::Color::kLightSkyBlue
inlinestaticconstexpr
Initial value:
{0.5294118f, 0.80784315f,
0.98039216f}

0x87CEFA.

◆ kLightSlateGray

constexpr Color frc::Color::kLightSlateGray {0.46666667f, 0.53333336f, 0.6f}
inlinestaticconstexpr

0x778899.

◆ kLightSteelBlue

constexpr Color frc::Color::kLightSteelBlue
inlinestaticconstexpr
Initial value:
{0.6901961f, 0.76862746f,
0.87058824f}

0xB0C4DE.

◆ kLightYellow

constexpr Color frc::Color::kLightYellow {1.0f, 1.0f, 0.8784314f}
inlinestaticconstexpr

0xFFFFE0.

◆ kLime

constexpr Color frc::Color::kLime {0.0f, 1.0f, 0.0f}
inlinestaticconstexpr

0x00FF00.

◆ kLimeGreen

constexpr Color frc::Color::kLimeGreen {0.19607843f, 0.8039216f, 0.19607843f}
inlinestaticconstexpr

0x32CD32.

◆ kLinen

constexpr Color frc::Color::kLinen {0.98039216f, 0.9411765f, 0.9019608f}
inlinestaticconstexpr

0xFAF0E6.

◆ kMagenta

constexpr Color frc::Color::kMagenta {1.0f, 0.0f, 1.0f}
inlinestaticconstexpr

0xFF00FF.

◆ kMaroon

constexpr Color frc::Color::kMaroon {0.5019608f, 0.0f, 0.0f}
inlinestaticconstexpr

0x800000.

◆ kMediumAquamarine

constexpr Color frc::Color::kMediumAquamarine {0.4f, 0.8039216f, 0.6666667f}
inlinestaticconstexpr

0x66CDAA.

◆ kMediumBlue

constexpr Color frc::Color::kMediumBlue {0.0f, 0.0f, 0.8039216f}
inlinestaticconstexpr

0x0000CD.

◆ kMediumOrchid

constexpr Color frc::Color::kMediumOrchid {0.7294118f, 0.33333334f, 0.827451f}
inlinestaticconstexpr

0xBA55D3.

◆ kMediumPurple

constexpr Color frc::Color::kMediumPurple
inlinestaticconstexpr
Initial value:
{0.5764706f, 0.4392157f,
0.85882354f}

0x9370DB.

◆ kMediumSeaGreen

constexpr Color frc::Color::kMediumSeaGreen
inlinestaticconstexpr
Initial value:
{0.23529412f, 0.7019608f,
0.44313726f}

0x3CB371.

◆ kMediumSlateBlue

constexpr Color frc::Color::kMediumSlateBlue
inlinestaticconstexpr
Initial value:
{0.48235294f, 0.40784314f,
0.93333334f}

0x7B68EE.

◆ kMediumSpringGreen

constexpr Color frc::Color::kMediumSpringGreen {0.0f, 0.98039216f, 0.6039216f}
inlinestaticconstexpr

0x00FA9A.

◆ kMediumTurquoise

constexpr Color frc::Color::kMediumTurquoise {0.28235295f, 0.81960785f, 0.8f}
inlinestaticconstexpr

0x48D1CC.

◆ kMediumVioletRed

constexpr Color frc::Color::kMediumVioletRed
inlinestaticconstexpr
Initial value:
{0.78039217f, 0.08235294f,
0.52156866f}

0xC71585.

◆ kMidnightBlue

constexpr Color frc::Color::kMidnightBlue
inlinestaticconstexpr
Initial value:
{0.09803922f, 0.09803922f,
0.4392157f}

0x191970.

◆ kMintcream

constexpr Color frc::Color::kMintcream {0.9607843f, 1.0f, 0.98039216f}
inlinestaticconstexpr

0xF5FFFA.

◆ kMistyRose

constexpr Color frc::Color::kMistyRose {1.0f, 0.89411765f, 0.88235295f}
inlinestaticconstexpr

0xFFE4E1.

◆ kMoccasin

constexpr Color frc::Color::kMoccasin {1.0f, 0.89411765f, 0.70980394f}
inlinestaticconstexpr

0xFFE4B5.

◆ kNavajoWhite

constexpr Color frc::Color::kNavajoWhite {1.0f, 0.87058824f, 0.6784314f}
inlinestaticconstexpr

0xFFDEAD.

◆ kNavy

constexpr Color frc::Color::kNavy {0.0f, 0.0f, 0.5019608f}
inlinestaticconstexpr

0x000080.

◆ kOldLace

constexpr Color frc::Color::kOldLace {0.99215686f, 0.9607843f, 0.9019608f}
inlinestaticconstexpr

0xFDF5E6.

◆ kOlive

constexpr Color frc::Color::kOlive {0.5019608f, 0.5019608f, 0.0f}
inlinestaticconstexpr

0x808000.

◆ kOliveDrab

constexpr Color frc::Color::kOliveDrab {0.41960785f, 0.5568628f, 0.13725491f}
inlinestaticconstexpr

0x6B8E23.

◆ kOrange

constexpr Color frc::Color::kOrange {1.0f, 0.64705884f, 0.0f}
inlinestaticconstexpr

0xFFA500.

◆ kOrangeRed

constexpr Color frc::Color::kOrangeRed {1.0f, 0.27058825f, 0.0f}
inlinestaticconstexpr

0xFF4500.

◆ kOrchid

constexpr Color frc::Color::kOrchid {0.85490197f, 0.4392157f, 0.8392157f}
inlinestaticconstexpr

0xDA70D6.

◆ kPaleGoldenrod

constexpr Color frc::Color::kPaleGoldenrod
inlinestaticconstexpr
Initial value:
{0.93333334f, 0.9098039f,
0.6666667f}

0xEEE8AA.

◆ kPaleGreen

constexpr Color frc::Color::kPaleGreen {0.59607846f, 0.9843137f, 0.59607846f}
inlinestaticconstexpr

0x98FB98.

◆ kPaleTurquoise

constexpr Color frc::Color::kPaleTurquoise
inlinestaticconstexpr
Initial value:
{0.6862745f, 0.93333334f,
0.93333334f}

0xAFEEEE.

◆ kPaleVioletRed

constexpr Color frc::Color::kPaleVioletRed
inlinestaticconstexpr
Initial value:
{0.85882354f, 0.4392157f,
0.5764706f}

0xDB7093.

◆ kPapayaWhip

constexpr Color frc::Color::kPapayaWhip {1.0f, 0.9372549f, 0.8352941f}
inlinestaticconstexpr

0xFFEFD5.

◆ kPeachPuff

constexpr Color frc::Color::kPeachPuff {1.0f, 0.85490197f, 0.7254902f}
inlinestaticconstexpr

0xFFDAB9.

◆ kPeru

constexpr Color frc::Color::kPeru {0.8039216f, 0.52156866f, 0.24705882f}
inlinestaticconstexpr

0xCD853F.

◆ kPink

constexpr Color frc::Color::kPink {1.0f, 0.7529412f, 0.79607844f}
inlinestaticconstexpr

0xFFC0CB.

◆ kPlum

constexpr Color frc::Color::kPlum {0.8666667f, 0.627451f, 0.8666667f}
inlinestaticconstexpr

0xDDA0DD.

◆ kPowderBlue

constexpr Color frc::Color::kPowderBlue {0.6901961f, 0.8784314f, 0.9019608f}
inlinestaticconstexpr

0xB0E0E6.

◆ kPurple

constexpr Color frc::Color::kPurple {0.5019608f, 0.0f, 0.5019608f}
inlinestaticconstexpr

0x800080.

◆ kRed

constexpr Color frc::Color::kRed {1.0f, 0.0f, 0.0f}
inlinestaticconstexpr

0xFF0000.

◆ kRosyBrown

constexpr Color frc::Color::kRosyBrown {0.7372549f, 0.56078434f, 0.56078434f}
inlinestaticconstexpr

0xBC8F8F.

◆ kRoyalBlue

constexpr Color frc::Color::kRoyalBlue {0.25490198f, 0.4117647f, 0.88235295f}
inlinestaticconstexpr

0x4169E1.

◆ kSaddleBrown

constexpr Color frc::Color::kSaddleBrown
inlinestaticconstexpr
Initial value:
{0.54509807f, 0.27058825f,
0.07450981f}

0x8B4513.

◆ kSalmon

constexpr Color frc::Color::kSalmon {0.98039216f, 0.5019608f, 0.44705883f}
inlinestaticconstexpr

0xFA8072.

◆ kSandyBrown

constexpr Color frc::Color::kSandyBrown {0.95686275f, 0.6431373f, 0.3764706f}
inlinestaticconstexpr

0xF4A460.

◆ kSeaGreen

constexpr Color frc::Color::kSeaGreen {0.18039216f, 0.54509807f, 0.34117648f}
inlinestaticconstexpr

0x2E8B57.

◆ kSeashell

constexpr Color frc::Color::kSeashell {1.0f, 0.9607843f, 0.93333334f}
inlinestaticconstexpr

0xFFF5EE.

◆ kSienna

constexpr Color frc::Color::kSienna {0.627451f, 0.32156864f, 0.1764706f}
inlinestaticconstexpr

0xA0522D.

◆ kSilver

constexpr Color frc::Color::kSilver {0.7529412f, 0.7529412f, 0.7529412f}
inlinestaticconstexpr

0xC0C0C0.

◆ kSkyBlue

constexpr Color frc::Color::kSkyBlue {0.5294118f, 0.80784315f, 0.92156863f}
inlinestaticconstexpr

0x87CEEB.

◆ kSlateBlue

constexpr Color frc::Color::kSlateBlue {0.41568628f, 0.3529412f, 0.8039216f}
inlinestaticconstexpr

0x6A5ACD.

◆ kSlateGray

constexpr Color frc::Color::kSlateGray {0.4392157f, 0.5019608f, 0.5647059f}
inlinestaticconstexpr

0x708090.

◆ kSnow

constexpr Color frc::Color::kSnow {1.0f, 0.98039216f, 0.98039216f}
inlinestaticconstexpr

0xFFFAFA.

◆ kSpringGreen

constexpr Color frc::Color::kSpringGreen {0.0f, 1.0f, 0.49803922f}
inlinestaticconstexpr

0x00FF7F.

◆ kSteelBlue

constexpr Color frc::Color::kSteelBlue {0.27450982f, 0.50980395f, 0.7058824f}
inlinestaticconstexpr

0x4682B4.

◆ kTan

constexpr Color frc::Color::kTan {0.8235294f, 0.7058824f, 0.54901963f}
inlinestaticconstexpr

0xD2B48C.

◆ kTeal

constexpr Color frc::Color::kTeal {0.0f, 0.5019608f, 0.5019608f}
inlinestaticconstexpr

0x008080.

◆ kThistle

constexpr Color frc::Color::kThistle {0.84705883f, 0.7490196f, 0.84705883f}
inlinestaticconstexpr

0xD8BFD8.

◆ kTomato

constexpr Color frc::Color::kTomato {1.0f, 0.3882353f, 0.2784314f}
inlinestaticconstexpr

0xFF6347.

◆ kTurquoise

constexpr Color frc::Color::kTurquoise {0.2509804f, 0.8784314f, 0.8156863f}
inlinestaticconstexpr

0x40E0D0.

◆ kViolet

constexpr Color frc::Color::kViolet {0.93333334f, 0.50980395f, 0.93333334f}
inlinestaticconstexpr

0xEE82EE.

◆ kWheat

constexpr Color frc::Color::kWheat {0.9607843f, 0.87058824f, 0.7019608f}
inlinestaticconstexpr

0xF5DEB3.

◆ kWhite

constexpr Color frc::Color::kWhite {1.0f, 1.0f, 1.0f}
inlinestaticconstexpr

0xFFFFFF.

◆ kWhiteSmoke

constexpr Color frc::Color::kWhiteSmoke {0.9607843f, 0.9607843f, 0.9607843f}
inlinestaticconstexpr

0xF5F5F5.

◆ kYellow

constexpr Color frc::Color::kYellow {1.0f, 1.0f, 0.0f}
inlinestaticconstexpr

0xFFFF00.

◆ kYellowGreen

constexpr Color frc::Color::kYellowGreen {0.6039216f, 0.8039216f, 0.19607843f}
inlinestaticconstexpr

0x9ACD32.

◆ red

double frc::Color::red = 0.0

Red component (0-1).


The documentation for this class was generated from the following file: