Colors Struct
Standard color palette providing commonly used colors as vec4f (RGBA). More...
Declaration
Public Static Functions Index
| static constexpr helios::math::vec4f | fromRGB (int r, int g, int b, int a=255) |
|
Creates a color from RGB byte values (0-255). More... | |
| static constexpr helios::math::vec4f | fromHex (unsigned int hex, bool hasAlpha=false) |
|
Creates a color from a 32-bit hex value (0xRRGGBB or 0xRRGGBBAA). More... | |
| static constexpr helios::math::vec4f | grayscale (float value, float alpha=1.0f) |
|
Creates a grayscale color. More... | |
| static constexpr helios::math::vec4f | withAlpha (const helios::math::vec4f &color, float alpha) |
|
Creates a color with modified alpha. More... | |
Public Static Attributes Index
| static constexpr helios::math::vec4f | Black {0.0f, 0.0f, 0.0f, 1.0f} |
|
Pure black (#000000) More... | |
| static constexpr helios::math::vec4f | White {1.0f, 1.0f, 1.0f, 1.0f} |
| static constexpr helios::math::vec4f | Red {1.0f, 0.0f, 0.0f, 1.0f} |
| static constexpr helios::math::vec4f | Green {0.0f, 1.0f, 0.0f, 1.0f} |
|
Pure green (#00FF00) More... | |
| static constexpr helios::math::vec4f | Blue {0.0f, 0.0f, 1.0f, 1.0f} |
|
Pure blue (#0000FF) More... | |
| static constexpr helios::math::vec4f | Yellow {1.0f, 1.0f, 0.0f, 1.0f} |
| static constexpr helios::math::vec4f | Cyan {0.0f, 1.0f, 1.0f, 1.0f} |
|
Cyan / Aqua (#00FFFF) More... | |
| static constexpr helios::math::vec4f | Magenta {1.0f, 0.0f, 1.0f, 1.0f} |
| static constexpr helios::math::vec4f | LightGray {0.75f, 0.75f, 0.75f, 1.0f} |
| static constexpr helios::math::vec4f | Gray {0.5f, 0.5f, 0.5f, 1.0f} |
|
Gray (#808080) More... | |
| static constexpr helios::math::vec4f | DarkGray {0.25f, 0.25f, 0.25f, 1.0f} |
|
Dark gray (#404040) More... | |
| static constexpr helios::math::vec4f | DarkRed {0.545f, 0.0f, 0.0f, 1.0f} |
|
Dark red (#8B0000) More... | |
| static constexpr helios::math::vec4f | Crimson {0.863f, 0.078f, 0.235f, 1.0f} |
| static constexpr helios::math::vec4f | Firebrick {0.698f, 0.133f, 0.133f, 1.0f} |
| static constexpr helios::math::vec4f | Tomato {1.0f, 0.388f, 0.278f, 1.0f} |
| static constexpr helios::math::vec4f | Coral {1.0f, 0.498f, 0.314f, 1.0f} |
| static constexpr helios::math::vec4f | IndianRed {0.804f, 0.361f, 0.361f, 1.0f} |
| static constexpr helios::math::vec4f | Salmon {0.980f, 0.502f, 0.447f, 1.0f} |
| static constexpr helios::math::vec4f | LightSalmon {1.0f, 0.627f, 0.478f, 1.0f} |
| static constexpr helios::math::vec4f | Orange {1.0f, 0.647f, 0.0f, 1.0f} |
| static constexpr helios::math::vec4f | DarkOrange {1.0f, 0.549f, 0.0f, 1.0f} |
| static constexpr helios::math::vec4f | OrangeRed {1.0f, 0.271f, 0.0f, 1.0f} |
| static constexpr helios::math::vec4f | Gold {1.0f, 0.843f, 0.0f, 1.0f} |
| static constexpr helios::math::vec4f | LightYellow {1.0f, 1.0f, 0.878f, 1.0f} |
| static constexpr helios::math::vec4f | LemonChiffon {1.0f, 0.980f, 0.804f, 1.0f} |
| static constexpr helios::math::vec4f | Khaki {0.941f, 0.902f, 0.549f, 1.0f} |
| static constexpr helios::math::vec4f | DarkGreen {0.0f, 0.392f, 0.0f, 1.0f} |
|
Dark Green (#006400) More... | |
| static constexpr helios::math::vec4f | ForestGreen {0.133f, 0.545f, 0.133f, 1.0f} |
|
Forest Green (#228B22) More... | |
| static constexpr helios::math::vec4f | LimeGreen {0.196f, 0.804f, 0.196f, 1.0f} |
|
Lime Green (#32CD32) More... | |
| static constexpr helios::math::vec4f | LightGreen {0.565f, 0.933f, 0.565f, 1.0f} |
|
Light Green (#90EE90) More... | |
| static constexpr helios::math::vec4f | PaleGreen {0.596f, 0.984f, 0.596f, 1.0f} |
|
Pale Green (#98FB98) More... | |
| static constexpr helios::math::vec4f | SpringGreen {0.0f, 1.0f, 0.498f, 1.0f} |
|
Spring Green (#00FF7F) More... | |
| static constexpr helios::math::vec4f | SeaGreen {0.180f, 0.545f, 0.341f, 1.0f} |
|
Sea Green (#2E8B57) More... | |
| static constexpr helios::math::vec4f | Olive {0.502f, 0.502f, 0.0f, 1.0f} |
|
Olive (#808000) More... | |
| static constexpr helios::math::vec4f | OliveDrab {0.420f, 0.557f, 0.137f, 1.0f} |
|
Olive Drab (#6B8E23) More... | |
| static constexpr helios::math::vec4f | Navy {0.0f, 0.0f, 0.502f, 1.0f} |
|
Navy (#000080) More... | |
| static constexpr helios::math::vec4f | DarkBlue {0.0f, 0.0f, 0.545f, 1.0f} |
|
Dark Blue (#00008B) More... | |
| static constexpr helios::math::vec4f | MediumBlue {0.0f, 0.0f, 0.804f, 1.0f} |
|
Medium Blue (#0000CD) More... | |
| static constexpr helios::math::vec4f | RoyalBlue {0.255f, 0.412f, 0.882f, 1.0f} |
|
Royal Blue (#4169E1) More... | |
| static constexpr helios::math::vec4f | CornflowerBlue {0.392f, 0.584f, 0.929f, 1.0f} |
|
Cornflower Blue (#6495ED) More... | |
| static constexpr helios::math::vec4f | DodgerBlue {0.118f, 0.565f, 1.0f, 1.0f} |
|
Dodger Blue (#1E90FF) More... | |
| static constexpr helios::math::vec4f | DeepSkyBlue {0.0f, 0.749f, 1.0f, 1.0f} |
|
Deep Sky Blue (#00BFFF) More... | |
| static constexpr helios::math::vec4f | SkyBlue {0.529f, 0.808f, 0.922f, 1.0f} |
|
Sky Blue (#87CEEB) More... | |
| static constexpr helios::math::vec4f | LightSkyBlue {0.529f, 0.808f, 0.980f, 1.0f} |
|
Light Sky Blue (#87CEFA) More... | |
| static constexpr helios::math::vec4f | LightBlue {0.678f, 0.847f, 0.902f, 1.0f} |
| static constexpr helios::math::vec4f | SteelBlue {0.275f, 0.510f, 0.706f, 1.0f} |
|
Steel Blue (#4682B4) More... | |
| static constexpr helios::math::vec4f | PowderBlue {0.690f, 0.878f, 0.902f, 1.0f} |
| static constexpr helios::math::vec4f | Teal {0.0f, 0.502f, 0.502f, 1.0f} |
|
Teal (#008080) More... | |
| static constexpr helios::math::vec4f | DarkCyan {0.0f, 0.545f, 0.545f, 1.0f} |
|
Dark Cyan (#008B8B) More... | |
| static constexpr helios::math::vec4f | Turquoise {0.251f, 0.878f, 0.816f, 1.0f} |
|
Turquoise (#40E0D0) More... | |
| static constexpr helios::math::vec4f | Aquamarine {0.498f, 1.0f, 0.831f, 1.0f} |
|
Aquamarine (#7FFFD4) More... | |
| static constexpr helios::math::vec4f | Purple {0.502f, 0.0f, 0.502f, 1.0f} |
|
Purple (#800080) More... | |
| static constexpr helios::math::vec4f | Indigo {0.294f, 0.0f, 0.510f, 1.0f} |
|
Indigo (#4B0082) More... | |
| static constexpr helios::math::vec4f | DarkViolet {0.580f, 0.0f, 0.827f, 1.0f} |
|
Dark Violet (#9400D3) More... | |
| static constexpr helios::math::vec4f | DarkOrchid {0.600f, 0.196f, 0.800f, 1.0f} |
|
Dark Orchid (#9932CC) More... | |
| static constexpr helios::math::vec4f | MediumPurple {0.576f, 0.439f, 0.859f, 1.0f} |
|
Medium Purple (#9370DB) More... | |
| static constexpr helios::math::vec4f | Violet {0.933f, 0.510f, 0.933f, 1.0f} |
| static constexpr helios::math::vec4f | Orchid {0.855f, 0.439f, 0.839f, 1.0f} |
| static constexpr helios::math::vec4f | Plum {0.867f, 0.627f, 0.867f, 1.0f} |
| static constexpr helios::math::vec4f | Lavender {0.902f, 0.902f, 0.980f, 1.0f} |
| static constexpr helios::math::vec4f | Pink {1.0f, 0.753f, 0.796f, 1.0f} |
| static constexpr helios::math::vec4f | LightPink {1.0f, 0.714f, 0.757f, 1.0f} |
| static constexpr helios::math::vec4f | HotPink {1.0f, 0.412f, 0.706f, 1.0f} |
| static constexpr helios::math::vec4f | DeepPink {1.0f, 0.078f, 0.576f, 1.0f} |
| static constexpr helios::math::vec4f | Brown {0.647f, 0.165f, 0.165f, 1.0f} |
| static constexpr helios::math::vec4f | Maroon {0.502f, 0.0f, 0.0f, 1.0f} |
|
Maroon (#800000) More... | |
| static constexpr helios::math::vec4f | Sienna {0.627f, 0.322f, 0.176f, 1.0f} |
| static constexpr helios::math::vec4f | SaddleBrown {0.545f, 0.271f, 0.075f, 1.0f} |
|
Saddle Brown (#8B4513) More... | |
| static constexpr helios::math::vec4f | Chocolate {0.824f, 0.412f, 0.118f, 1.0f} |
| static constexpr helios::math::vec4f | Peru {0.804f, 0.522f, 0.247f, 1.0f} |
| static constexpr helios::math::vec4f | SandyBrown {0.957f, 0.643f, 0.376f, 1.0f} |
| static constexpr helios::math::vec4f | Tan {0.824f, 0.706f, 0.549f, 1.0f} |
| static constexpr helios::math::vec4f | Burlywood {0.871f, 0.722f, 0.529f, 1.0f} |
| static constexpr helios::math::vec4f | Wheat {0.961f, 0.871f, 0.702f, 1.0f} |
| static constexpr helios::math::vec4f | Snow {1.0f, 0.980f, 0.980f, 1.0f} |
| static constexpr helios::math::vec4f | Ivory {1.0f, 1.0f, 0.941f, 1.0f} |
| static constexpr helios::math::vec4f | Linen {0.980f, 0.941f, 0.902f, 1.0f} |
| static constexpr helios::math::vec4f | Beige {0.961f, 0.961f, 0.863f, 1.0f} |
| static constexpr helios::math::vec4f | AntiqueWhite {0.980f, 0.922f, 0.843f, 1.0f} |
| static constexpr helios::math::vec4f | MintCream {0.961f, 1.0f, 0.980f, 1.0f} |
| static constexpr helios::math::vec4f | Azure {0.941f, 1.0f, 1.0f, 1.0f} |
| static constexpr helios::math::vec4f | AliceBlue {0.941f, 0.973f, 1.0f, 1.0f} |
| static constexpr helios::math::vec4f | GhostWhite {0.973f, 0.973f, 1.0f, 1.0f} |
| static constexpr helios::math::vec4f | WhiteSmoke {0.961f, 0.961f, 0.961f, 1.0f} |
| static constexpr helios::math::vec4f | Transparent {0.0f, 0.0f, 0.0f, 0.0f} |
|
Fully transparent (all components 0) More... | |
| static constexpr helios::math::vec4f | Cornsilk {1.0f, 0.973f, 0.863f, 1.0f} |
| static constexpr helios::math::vec4f | Honeydew {0.941f, 1.0f, 0.941f, 1.0f} |
| static constexpr helios::math::vec4f | Seashell {1.0f, 0.961f, 0.933f, 1.0f} |
| static constexpr helios::math::vec4f | FloralWhite {1.0f, 0.980f, 0.941f, 1.0f} |
Description
Standard color palette providing commonly used colors as vec4f (RGBA).
All colors are defined in normalized RGBA format with components in [0.0, 1.0]. Alpha is set to 1.0 (fully opaque) by default.
Definition at line 17 of file Colors.ixx.
Public Static Functions
fromHex()
| inline constexpr static |
Creates a color from a 32-bit hex value (0xRRGGBB or 0xRRGGBBAA).
- Parameters
-
hex The hex color value.
hasAlpha If true, expects 0xRRGGBBAA format; otherwise 0xRRGGBB with alpha = 1.0.
- Returns
Normalized vec4f color.
Definition at line 365 of file Colors.ixx.
Reference helios::registerComponents.
fromRGB()
| inline constexpr static |
Creates a color from RGB byte values (0-255).
- Parameters
-
r Red component (0-255).
g Green component (0-255).
b Blue component (0-255).
a Alpha component (0-255), defaults to 255 (opaque).
- Returns
Normalized vec4f color.
Definition at line 350 of file Colors.ixx.
Reference helios::registerComponents.
grayscale()
| inline constexpr static |
Creates a grayscale color.
- Parameters
-
value The gray value (0.0 = black, 1.0 = white).
alpha The alpha value (defaults to 1.0).
- Returns
Grayscale vec4f color.
Definition at line 388 of file Colors.ixx.
Reference helios::registerComponents.
withAlpha()
| inline constexpr static |
Creates a color with modified alpha.
- Parameters
-
color The source color.
alpha The new alpha value.
- Returns
Color with modified alpha.
Definition at line 398 of file Colors.ixx.
Reference helios::registerComponents.
Public Static Attributes
AliceBlue
| constexpr static |
Alice Blue (F0F8FF)
Definition at line 311 of file Colors.ixx.
AntiqueWhite
| constexpr static |
Antique White (FAEBD7)
Definition at line 302 of file Colors.ixx.
Aquamarine
| constexpr static |
Aquamarine (#7FFFD4)
Definition at line 202 of file Colors.ixx.
Azure
| constexpr static |
Azure (F0FFFF)
Definition at line 308 of file Colors.ixx.
Beige
| constexpr static |
Beige (F5F5DC)
Definition at line 299 of file Colors.ixx.
Black
| constexpr static |
Pure black (#000000)
Definition at line 24 of file Colors.ixx.
Blue
| constexpr static |
Pure blue (#0000FF)
Definition at line 36 of file Colors.ixx.
Brown
| constexpr static |
Brown (A52A2A)
Definition at line 256 of file Colors.ixx.
Burlywood
| constexpr static |
Burlywood (DEB887)
Definition at line 280 of file Colors.ixx.
Chocolate
| constexpr static |
Chocolate (D2691E)
Definition at line 268 of file Colors.ixx.
Coral
| constexpr static |
Coral (FF7F50)
Definition at line 77 of file Colors.ixx.
CornflowerBlue
| constexpr static |
Cornflower Blue (#6495ED)
Definition at line 165 of file Colors.ixx.
Cornsilk
| constexpr static |
Cornsilk (FFF8DC)
Definition at line 327 of file Colors.ixx.
Crimson
| constexpr static |
Crimson (DC143C)
Definition at line 68 of file Colors.ixx.
Cyan
| constexpr static |
Cyan / Aqua (#00FFFF)
Definition at line 42 of file Colors.ixx.
DarkBlue
| constexpr static |
Dark Blue (#00008B)
Definition at line 156 of file Colors.ixx.
DarkCyan
| constexpr static |
Dark Cyan (#008B8B)
Definition at line 196 of file Colors.ixx.
DarkGray
| constexpr static |
Dark gray (#404040)
Definition at line 58 of file Colors.ixx.
DarkGreen
| constexpr static |
Dark Green (#006400)
Definition at line 122 of file Colors.ixx.
DarkOrange
| constexpr static |
Dark Orange (FF8C00)
Definition at line 96 of file Colors.ixx.
DarkOrchid
| constexpr static |
Dark Orchid (#9932CC)
Definition at line 218 of file Colors.ixx.
DarkRed
| constexpr static |
Dark red (#8B0000)
Definition at line 65 of file Colors.ixx.
DarkViolet
| constexpr static |
Dark Violet (#9400D3)
Definition at line 215 of file Colors.ixx.
DeepPink
| constexpr static |
Deep Pink (FF1493)
Definition at line 249 of file Colors.ixx.
DeepSkyBlue
| constexpr static |
Deep Sky Blue (#00BFFF)
Definition at line 171 of file Colors.ixx.
DodgerBlue
| constexpr static |
Dodger Blue (#1E90FF)
Definition at line 168 of file Colors.ixx.
Firebrick
| constexpr static |
Firebrick (B22222)
Definition at line 71 of file Colors.ixx.
FloralWhite
| constexpr static |
Floral White (FFFAF0)
Definition at line 336 of file Colors.ixx.
ForestGreen
| constexpr static |
Forest Green (#228B22)
Definition at line 125 of file Colors.ixx.
GhostWhite
| constexpr static |
Ghost White (F8F8FF)
Definition at line 314 of file Colors.ixx.
Gold
| constexpr static |
Gold (FFD700)
Definition at line 106 of file Colors.ixx.
Gray
| constexpr static |
Gray (#808080)
Definition at line 55 of file Colors.ixx.
Green
| constexpr static |
Pure green (#00FF00)
Definition at line 33 of file Colors.ixx.
Honeydew
| constexpr static |
Honeydew (F0FFF0)
Definition at line 330 of file Colors.ixx.
HotPink
| constexpr static |
Hot Pink (FF69B4)
Definition at line 246 of file Colors.ixx.
IndianRed
| constexpr static |
Indian Red (CD5C5C)
Definition at line 80 of file Colors.ixx.
Indigo
| constexpr static |
Indigo (#4B0082)
Definition at line 212 of file Colors.ixx.
Ivory
| constexpr static |
Ivory (FFFFF0)
Definition at line 293 of file Colors.ixx.
Khaki
| constexpr static |
Khaki (F0E68C)
Definition at line 115 of file Colors.ixx.
Lavender
| constexpr static |
Lavender (E6E6FA)
Definition at line 233 of file Colors.ixx.
LemonChiffon
| constexpr static |
Lemon Chiffon (FFFACD)
Definition at line 112 of file Colors.ixx.
LightBlue
| constexpr static |
Light Blue (ADD8E6)
Definition at line 180 of file Colors.ixx.
LightGray
| constexpr static |
Light gray (C0C0C0)
Definition at line 52 of file Colors.ixx.
LightGreen
| constexpr static |
Light Green (#90EE90)
Definition at line 131 of file Colors.ixx.
LightPink
| constexpr static |
Light Pink (FFB6C1)
Definition at line 243 of file Colors.ixx.
LightSalmon
| constexpr static |
Light Salmon (FFA07A)
Definition at line 86 of file Colors.ixx.
LightSkyBlue
| constexpr static |
Light Sky Blue (#87CEFA)
Definition at line 177 of file Colors.ixx.
LightYellow
| constexpr static |
Light Yellow (FFFFE0)
Definition at line 109 of file Colors.ixx.
LimeGreen
| constexpr static |
Lime Green (#32CD32)
Definition at line 128 of file Colors.ixx.
Linen
| constexpr static |
Linen (FAF0E6)
Definition at line 296 of file Colors.ixx.
Magenta
| constexpr static |
Magenta / Fuchsia (FF00FF)
Definition at line 45 of file Colors.ixx.
Maroon
| constexpr static |
Maroon (#800000)
Definition at line 259 of file Colors.ixx.
MediumBlue
| constexpr static |
Medium Blue (#0000CD)
Definition at line 159 of file Colors.ixx.
MediumPurple
| constexpr static |
Medium Purple (#9370DB)
Definition at line 221 of file Colors.ixx.
MintCream
| constexpr static |
Mint Cream (F5FFFA)
Definition at line 305 of file Colors.ixx.
Navy
| constexpr static |
Navy (#000080)
Definition at line 153 of file Colors.ixx.
Olive
| constexpr static |
Olive (#808000)
Definition at line 143 of file Colors.ixx.
OliveDrab
| constexpr static |
Olive Drab (#6B8E23)
Definition at line 146 of file Colors.ixx.
Orange
| constexpr static |
Orange (FFA500)
Definition at line 93 of file Colors.ixx.
OrangeRed
| constexpr static |
Orange Red (FF4500)
Definition at line 99 of file Colors.ixx.
Orchid
| constexpr static |
Orchid (DA70D6)
Definition at line 227 of file Colors.ixx.
PaleGreen
| constexpr static |
Pale Green (#98FB98)
Definition at line 134 of file Colors.ixx.
Peru
| constexpr static |
Peru (CD853F)
Definition at line 271 of file Colors.ixx.
Pink
| constexpr static |
Pink (FFC0CB)
Definition at line 240 of file Colors.ixx.
Plum
| constexpr static |
Plum (DDA0DD)
Definition at line 230 of file Colors.ixx.
PowderBlue
| constexpr static |
Powder Blue (B0E0E6)
Definition at line 186 of file Colors.ixx.
Purple
| constexpr static |
Purple (#800080)
Definition at line 209 of file Colors.ixx.
Red
| constexpr static |
Pure red (FF0000)
Definition at line 30 of file Colors.ixx.
RoyalBlue
| constexpr static |
Royal Blue (#4169E1)
Definition at line 162 of file Colors.ixx.
SaddleBrown
| constexpr static |
Saddle Brown (#8B4513)
Definition at line 265 of file Colors.ixx.
Salmon
| constexpr static |
Salmon (FA8072)
Definition at line 83 of file Colors.ixx.
SandyBrown
| constexpr static |
Sandy Brown (F4A460)
Definition at line 274 of file Colors.ixx.
SeaGreen
| constexpr static |
Sea Green (#2E8B57)
Definition at line 140 of file Colors.ixx.
Seashell
| constexpr static |
Seashell (FFF5EE)
Definition at line 333 of file Colors.ixx.
Sienna
| constexpr static |
Sienna (A0522D)
Definition at line 262 of file Colors.ixx.
SkyBlue
| constexpr static |
Sky Blue (#87CEEB)
Definition at line 174 of file Colors.ixx.
Snow
| constexpr static |
Snow (FFFAFA)
Definition at line 290 of file Colors.ixx.
SpringGreen
| constexpr static |
Spring Green (#00FF7F)
Definition at line 137 of file Colors.ixx.
SteelBlue
| constexpr static |
Steel Blue (#4682B4)
Definition at line 183 of file Colors.ixx.
Tan
| constexpr static |
Tan (D2B48C)
Definition at line 277 of file Colors.ixx.
Teal
| constexpr static |
Teal (#008080)
Definition at line 193 of file Colors.ixx.
Tomato
| constexpr static |
Tomato (FF6347)
Definition at line 74 of file Colors.ixx.
Transparent
| constexpr static |
Fully transparent (all components 0)
Definition at line 324 of file Colors.ixx.
Turquoise
| constexpr static |
Turquoise (#40E0D0)
Definition at line 199 of file Colors.ixx.
Violet
| constexpr static |
Violet (EE82EE)
Definition at line 224 of file Colors.ixx.
Wheat
| constexpr static |
Wheat (F5DEB3)
Definition at line 283 of file Colors.ixx.
White
| constexpr static |
Pure white (FFFFFF)
Definition at line 27 of file Colors.ixx.
WhiteSmoke
| constexpr static |
White Smoke (F5F5F5)
Definition at line 317 of file Colors.ixx.
Yellow
| constexpr static |
Yellow (FFFF00)
Definition at line 39 of file Colors.ixx.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.