Functions | |
glm::vec4 | RGBA (float red, float green, float blue, float alpha) |
Build a color from its RGBA components components. This is equivalent to calling the glm::vec4 constructor. More... | |
glm::vec4 | RGB (float red, float green, float blue) |
Build an opaque color from its RGB components components. More... | |
Variables | |
const glm::vec4 | White = {1.F, 1.F, 1.F, 1.F} |
White. More... | |
const glm::vec4 | Black = {0.F, 0.F, 0.F, 1.F} |
Black. More... | |
const glm::vec4 | Grey = {.5f, .5f, .5f, 1.F} |
Grey. More... | |
const glm::vec4 | Red = {1.F, 0.F, 0.F, 1.F} |
Red. More... | |
const glm::vec4 | Green = {0.F, 1.F, 0.F, 1.F} |
Green. More... | |
const glm::vec4 | Blue = {0.F, 0.F, 1.F, 1.F} |
Blue. More... | |
const glm::vec4 | Yellow = {1.F, 1.F, 0.F, 1.F} |
Yellow. More... | |
const glm::vec4 | Magenta = {1.F, 0.F, 1.F, 1.F} |
Magenta. More... | |
const glm::vec4 | Cyan = {0.F, 1.F, 1.F, 1.F} |
Cyan. More... | |
const glm::vec4 | Transparent = {0.F, 0.F, 0.F, 0.F} |
Transparent. More... | |
Color namespace.
glm::vec4 smk::Color::RGB | ( | float | red, |
float | green, | ||
float | blue | ||
) |
Build an opaque color from its RGB components components.
red | The red component in [0,1] |
blue | The blue component in [0,1] |
green | The green component in [0,1] |
Definition at line 24 of file Color.cpp.
glm::vec4 smk::Color::RGBA | ( | float | red, |
float | green, | ||
float | blue, | ||
float | alpha | ||
) |
Build a color from its RGBA components components. This is equivalent to calling the glm::vec4 constructor.
red | The red component in [0,1] |
blue | The blue component in [0,1] |
green | The green component in [0,1] |
alpha | The alpha component in [0,1] |
Definition at line 16 of file Color.cpp.
const glm::vec4 smk::Color::Black = {0.F, 0.F, 0.F, 1.F} |
Black.
const glm::vec4 smk::Color::Blue = {0.F, 0.F, 1.F, 1.F} |
const glm::vec4 smk::Color::Cyan = {0.F, 1.F, 1.F, 1.F} |
const glm::vec4 smk::Color::Green = {0.F, 1.F, 0.F, 1.F} |
const glm::vec4 smk::Color::Grey = {.5f, .5f, .5f, 1.F} |
const glm::vec4 smk::Color::Magenta = {1.F, 0.F, 1.F, 1.F} |
const glm::vec4 smk::Color::Red = {1.F, 0.F, 0.F, 1.F} |
Red.
const glm::vec4 smk::Color::Transparent = {0.F, 0.F, 0.F, 0.F} |
const glm::vec4 smk::Color::White = {1.F, 1.F, 1.F, 1.F} |
const glm::vec4 smk::Color::Yellow = {1.F, 1.F, 0.F, 1.F} |