24 #include "Portability.h" 28 #ifndef DOXYGEN_SHOULD_SKIP_THIS 53 static constexpr
Color4f Black{0.0f, 0.0f, 0.0f, 1.0f};
68 static constexpr
Color4f Green{0.0f, 1.0f, 0.0f, 1.0f};
78 static constexpr
Color4f Cyan{0.0f, 1.0f, 1.0f, 1.0f};
83 static constexpr
Color4f Magenta{1.0f, 0.0f, 1.0f, 1.0f};
88 static constexpr
Color4f Yellow{1.0f, 1.0f, 0.0f, 1.0f};
101 return { 1.0f, 1.0f, 1.0f, value };
110 return { value, value, value, 1.0f };
116 static constexpr
Color4f Orange{1.0f, 0.5f, 0.0f, 1.0f};
121 static constexpr
Color4f Rose{1.0f, 0.0f, 0.5f, 1.0f};
126 static constexpr
Color4f Chartreuse{0.5f, 1.0f, 0.0f, 1.0f};
131 static constexpr
Color4f Spring{0.0f, 1.0f, 0.5f, 1.0f};
136 static constexpr
Color4f Violet{0.5f, 0.0f, 1.0f, 1.0f};
141 static constexpr
Color4f Azure{0.0f, 0.5f, 1.0f, 1.0f};
189 static Color4f fromRgba32(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255);
197 static Color4f fromRgba32(uint32_t color);
217 #ifndef DOXYGEN_SHOULD_SKIP_THIS
static constexpr Color4f Gray(float value=0.5f)
Gray predefined color.
Definition: Color.h:109
The namespace for gf classes.
Definition: Action.h:35
Predefined colors.
Definition: Color.h:44
A blue and light gray style.
Vector< float, 4 > Color4f
A float color vector with 4 components.
Definition: Vector.h:1259
static constexpr Color4f Opaque(float value=0.5f)
Opaque predefined color.
Definition: Color.h:100
static Color4f fromRgbF(float r, float g, float b)
Get an opaque color from 3 RGB floats in .
Definition: Color.h:176