Represents a 4 channel color: {Red, Green, Blue, Alpha}. TODO: channel values should be limited to the range 0.0 - 1.0.
More...
#include <color.h>
|
using | channel_type = float |
|
|
void | clamp () |
| clamp each channel to the [0 - 1] range
|
|
void | operator+= (const color &aOther) |
| add two colors together. \warn does not clamp values within the normalized range
|
|
bool | operator== (const color &aOther) const |
| equality semantics
|
|
bool | operator!= (const color &aOther) const |
| equality semantics
|
|
| color (const color &)=default |
| copy semantics
|
|
color & | operator= (const color &acolor)=default |
| copy semantics
|
|
| color (color &&)=default |
| move semantics
|
|
color & | operator= (color &&acolor)=default |
| move semantics
|
|
| color ()=default |
| constructs a color as opaque black
|
|
| color (const channel_type aR, const channel_type aG, const channel_type aB, const channel_type aA=1) |
| constructs a color with provided channel values. Alpha has a default opaque value
|
|
|
channel_type | r = 0 |
|
channel_type | g = 0 |
|
channel_type | b = 0 |
|
channel_type | a = 1 |
|
|
|
static const color | black |
| opaque black color
|
|
static const color | white |
| opaque white color
|
|
static const color | red |
| opaque red color
|
|
static const color | green |
| opaque green color
|
|
static const color | dark_green |
| opaque dark green color
|
|
static const color | blue |
| opaque blue color
|
|
static const color | deathly_pink |
|
static const color | cornflower_blue |
| an opaque pastel blue color
|
|
Represents a 4 channel color: {Red, Green, Blue, Alpha}. TODO: channel values should be limited to the range 0.0 - 1.0.
◆ deathly_pink
const color gdk::color::deathly_pink |
|
static |
opaque bright pink color, useful for indicating color-related errors (stands out against most palettes)
The documentation for this struct was generated from the following file:
- /home/deck/Workspace/gdk-test_game/thirdparty/gdk-graphics/include/gdk/color.h