WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
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).
 
constexpr Color (double r, double g, double b)
 Constructs a Color from doubles (0-1).
 
constexpr Color (int r, int g, int b)
 Constructs a Color from ints (0-255).
 
constexpr Color (std::string_view hexString)
 Constructs a Color from a hex string.
 
constexpr bool operator== (const Color &) const =default
 
constexpr auto HexString () const
 Return this color represented as a hex string.
 

Static Public Member Functions

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

Public Attributes

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

Static Public Attributes

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

Detailed Description

Represents colors that can be used with Addressable LEDs.

Limited to 12 bits of precision.

Constructor & Destructor Documentation

◆ Color() [1/4]

frc::Color::Color ( )
constexprdefault

Constructs a default color (black).

◆ Color() [2/4]

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]

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]

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

Constructs a Color from a hex string.

Parameters
hexStringa string of the format #RRGGBB
Throws:
std::invalid_argument if 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()

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

Return this color represented as a hex string.

Returns
a string of the format #RRGGBB

◆ operator==()

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

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

0xF0F8FF.

◆ kAntiqueWhite

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

0xFAEBD7.

◆ kAqua

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

0x00FFFF.

◆ kAquamarine

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

0x7FFFD4.

◆ kAzure

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

0xF0FFFF.

◆ kBeige

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

0xF5F5DC.

◆ kBisque

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

0xFFE4C4.

◆ kBlack

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

0x000000.

◆ kBlanchedAlmond

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

0xFFEBCD.

◆ kBlue

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

0x0000FF.

◆ kBlueViolet

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

0x8A2BE2.

◆ kBrown

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

0xA52A2A.

◆ kBurlywood

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

0xDEB887.

◆ kCadetBlue

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

0x5F9EA0.

◆ kChartreuse

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

0x7FFF00.

◆ kChocolate

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

0xD2691E.

◆ kCoral

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

0xFF7F50.

◆ kCornflowerBlue

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

0x6495ED.

◆ kCornsilk

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

0xFFF8DC.

◆ kCrimson

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

0xDC143C.

◆ kCyan

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

0x00FFFF.

◆ kDarkBlue

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

0x00008B.

◆ kDarkCyan

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

0x008B8B.

◆ kDarkGoldenrod

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

0xB8860B.

◆ kDarkGray

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

0xA9A9A9.

◆ kDarkGreen

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

0x006400.

◆ kDarkKhaki

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

0xBDB76B.

◆ kDarkMagenta

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

0x8B008B.

◆ kDarkOliveGreen

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

0x556B2F.

◆ kDarkOrange

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

0xFF8C00.

◆ kDarkOrchid

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

0x9932CC.

◆ kDarkRed

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

0x8B0000.

◆ kDarkSalmon

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

0xE9967A.

◆ kDarkSeaGreen

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

0x8FBC8F.

◆ kDarkSlateBlue

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

0x483D8B.

◆ kDarkSlateGray

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

0x2F4F4F.

◆ kDarkTurquoise

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

0x00CED1.

◆ kDarkViolet

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

0x9400D3.

◆ kDeepPink

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

0xFF1493.

◆ kDeepSkyBlue

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

0x00BFFF.

◆ kDenim

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

0x1560BD.

◆ kDimGray

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

0x696969.

◆ kDodgerBlue

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

0x1E90FF.

◆ kFirebrick

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

0xB22222.

◆ kFirstBlue

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

0x0066B3.

◆ kFirstRed

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

0xED1C24.

◆ kFloralWhite

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

0xFFFAF0.

◆ kForestGreen

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

0x228B22.

◆ kFuchsia

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

0xFF00FF.

◆ kGainsboro

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

0xDCDCDC.

◆ kGhostWhite

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

0xF8F8FF.

◆ kGold

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

0xFFD700.

◆ kGoldenrod

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

0xDAA520.

◆ kGray

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

0x808080.

◆ kGreen

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

0x008000.

◆ kGreenYellow

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

0xADFF2F.

◆ kHoneydew

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

0xF0FFF0.

◆ kHotPink

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

0xFF69B4.

◆ kIndianRed

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

0xCD5C5C.

◆ kIndigo

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

0x4B0082.

◆ kIvory

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

0xFFFFF0.

◆ kKhaki

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

0xF0E68C.

◆ kLavender

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

0xE6E6FA.

◆ kLavenderBlush

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

0xFFF0F5.

◆ kLawnGreen

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

0x7CFC00.

◆ kLemonChiffon

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

0xFFFACD.

◆ kLightBlue

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

0xADD8E6.

◆ kLightCoral

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

0xF08080.

◆ kLightCyan

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

0xE0FFFF.

◆ kLightGoldenrodYellow

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

0xFAFAD2.

◆ kLightGray

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

0xD3D3D3.

◆ kLightGreen

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

0x90EE90.

◆ kLightPink

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

0xFFB6C1.

◆ kLightSalmon

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

0xFFA07A.

◆ kLightSeaGreen

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

0x20B2AA.

◆ kLightSkyBlue

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

0x87CEFA.

◆ kLightSlateGray

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

0x778899.

◆ kLightSteelBlue

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

0xB0C4DE.

◆ kLightYellow

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

0xFFFFE0.

◆ kLime

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

0x00FF00.

◆ kLimeGreen

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

0x32CD32.

◆ kLinen

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

0xFAF0E6.

◆ kMagenta

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

0xFF00FF.

◆ kMaroon

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

0x800000.

◆ kMediumAquamarine

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

0x66CDAA.

◆ kMediumBlue

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

0x0000CD.

◆ kMediumOrchid

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

0xBA55D3.

◆ kMediumPurple

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

0x9370DB.

◆ kMediumSeaGreen

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

0x3CB371.

◆ kMediumSlateBlue

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

0x7B68EE.

◆ kMediumSpringGreen

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

0x00FA9A.

◆ kMediumTurquoise

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

0x48D1CC.

◆ kMediumVioletRed

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

0xC71585.

◆ kMidnightBlue

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

0x191970.

◆ kMintcream

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

0xF5FFFA.

◆ kMistyRose

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

0xFFE4E1.

◆ kMoccasin

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

0xFFE4B5.

◆ kNavajoWhite

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

0xFFDEAD.

◆ kNavy

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

0x000080.

◆ kOldLace

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

0xFDF5E6.

◆ kOlive

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

0x808000.

◆ kOliveDrab

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

0x6B8E23.

◆ kOrange

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

0xFFA500.

◆ kOrangeRed

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

0xFF4500.

◆ kOrchid

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

0xDA70D6.

◆ kPaleGoldenrod

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

0xEEE8AA.

◆ kPaleGreen

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

0x98FB98.

◆ kPaleTurquoise

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

0xAFEEEE.

◆ kPaleVioletRed

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

0xDB7093.

◆ kPapayaWhip

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

0xFFEFD5.

◆ kPeachPuff

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

0xFFDAB9.

◆ kPeru

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

0xCD853F.

◆ kPink

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

0xFFC0CB.

◆ kPlum

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

0xDDA0DD.

◆ kPowderBlue

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

0xB0E0E6.

◆ kPurple

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

0x800080.

◆ kRed

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

0xFF0000.

◆ kRosyBrown

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

0xBC8F8F.

◆ kRoyalBlue

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

0x4169E1.

◆ kSaddleBrown

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

0x8B4513.

◆ kSalmon

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

0xFA8072.

◆ kSandyBrown

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

0xF4A460.

◆ kSeaGreen

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

0x2E8B57.

◆ kSeashell

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

0xFFF5EE.

◆ kSienna

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

0xA0522D.

◆ kSilver

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

0xC0C0C0.

◆ kSkyBlue

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

0x87CEEB.

◆ kSlateBlue

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

0x6A5ACD.

◆ kSlateGray

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

0x708090.

◆ kSnow

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

0xFFFAFA.

◆ kSpringGreen

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

0x00FF7F.

◆ kSteelBlue

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

0x4682B4.

◆ kTan

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

0xD2B48C.

◆ kTeal

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

0x008080.

◆ kThistle

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

0xD8BFD8.

◆ kTomato

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

0xFF6347.

◆ kTurquoise

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

0x40E0D0.

◆ kViolet

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

0xEE82EE.

◆ kWheat

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

0xF5DEB3.

◆ kWhite

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

0xFFFFFF.

◆ kWhiteSmoke

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

0xF5F5F5.

◆ kYellow

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

0xFFFF00.

◆ kYellowGreen

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: