5#include "smk/Color.hpp"
16glm::vec4
RGBA(
float red,
float green,
float blue,
float alpha) {
17 return {red, green, blue, alpha};
24glm::vec4
RGB(
float red,
float green,
float blue) {
25 return {red, green, blue, 1.F};
29const glm::vec4
White = {1.F, 1.F, 1.F, 1.F};
30const glm::vec4
Black = {0.F, 0.F, 0.F, 1.F};
31const glm::vec4
Grey = {.5f, .5f, .5f, 1.F};
32const glm::vec4
Red = {1.F, 0.F, 0.F, 1.F};
33const glm::vec4
Green = {0.F, 1.F, 0.F, 1.F};
34const glm::vec4
Blue = {0.F, 0.F, 1.F, 1.F};
35const glm::vec4
Yellow = {1.F, 1.F, 0.F, 1.F};
36const glm::vec4
Magenta = {1.F, 0.F, 1.F, 1.F};
37const glm::vec4
Cyan = {0.F, 1.F, 1.F, 1.F};
const glm::vec4 Green
Green.
const glm::vec4 Black
Black.
const glm::vec4 Cyan
Cyan.
const glm::vec4 Transparent
Transparent.
const glm::vec4 White
White.
const glm::vec4 Yellow
Yellow.
const glm::vec4 Grey
Grey.
const glm::vec4 Magenta
Magenta.
const glm::vec4 Blue
Blue.
glm::vec4 RGB(float red, float green, float blue)
Build an opaque color from its RGB components components.
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 constr...