Color
#include "Utils/Color.h"
Public Functions
Name | |
---|---|
glm::vec3 | getColor(const float r, const float g, const float b) |
glm::vec3 | randomColor() |
Public Attributes
Name | |
---|---|
glm::vec3 | BLACK |
glm::vec3 | BLUE |
glm::vec3 | BROWN |
glm::vec3 | DARK_GRAY |
glm::vec3 | GRAY |
glm::vec3 | GREEN |
glm::vec3 | LIGHT_BLUE |
glm::vec3 | LIGHT_GRAY |
glm::vec3 | MAGENTA |
glm::vec3 | ORANGE |
glm::vec3 | RED |
glm::vec3 | TEAL |
glm::vec3 | WHITE |
glm::vec3 | YELLOW |
Public Functions Documentation
function getColor
cpp
static inline glm::vec3 getColor(
const float r,
const float g,
const float b
)
static inline glm::vec3 getColor(
const float r,
const float g,
const float b
)
function randomColor
cpp
static inline glm::vec3 randomColor()
static inline glm::vec3 randomColor()
Public Attributes Documentation
variable BLACK
cpp
static glm::vec3 BLACK = glm::vec3(0.0f, 0.0f, 0.0f);
static glm::vec3 BLACK = glm::vec3(0.0f, 0.0f, 0.0f);
variable BLUE
cpp
static glm::vec3 BLUE = glm::vec3(0.0f, 0.0f, 1.0f);
static glm::vec3 BLUE = glm::vec3(0.0f, 0.0f, 1.0f);
variable BROWN
cpp
static glm::vec3 BROWN = glm::vec3(0.5f, 0.2f, 0.0f);
static glm::vec3 BROWN = glm::vec3(0.5f, 0.2f, 0.0f);
variable DARK_GRAY
cpp
static glm::vec3 DARK_GRAY = glm::vec3(0.2f, 0.2f, 0.2f);
static glm::vec3 DARK_GRAY = glm::vec3(0.2f, 0.2f, 0.2f);
variable GRAY
cpp
static glm::vec3 GRAY = glm::vec3(0.5f, 0.5f, 0.5f);
static glm::vec3 GRAY = glm::vec3(0.5f, 0.5f, 0.5f);
variable GREEN
cpp
static glm::vec3 GREEN = glm::vec3(0.0f, 1.0f, 0.0f);
static glm::vec3 GREEN = glm::vec3(0.0f, 1.0f, 0.0f);
variable LIGHT_BLUE
cpp
static glm::vec3 LIGHT_BLUE = glm::vec3(0.0f, 0.4f, 0.65f);
static glm::vec3 LIGHT_BLUE = glm::vec3(0.0f, 0.4f, 0.65f);
variable LIGHT_GRAY
cpp
static glm::vec3 LIGHT_GRAY = glm::vec3(0.7f, 0.7f, 0.7f);
static glm::vec3 LIGHT_GRAY = glm::vec3(0.7f, 0.7f, 0.7f);
variable MAGENTA
cpp
static glm::vec3 MAGENTA = glm::vec3(1.0f, 0.0f, 1.0f);
static glm::vec3 MAGENTA = glm::vec3(1.0f, 0.0f, 1.0f);
variable ORANGE
cpp
static glm::vec3 ORANGE = glm::vec3(1.0f, 0.5f, 0.0f);
static glm::vec3 ORANGE = glm::vec3(1.0f, 0.5f, 0.0f);
variable RED
cpp
static glm::vec3 RED = glm::vec3(1.0f, 0.0f, 0.0f);
static glm::vec3 RED = glm::vec3(1.0f, 0.0f, 0.0f);
variable TEAL
cpp
static glm::vec3 TEAL = glm::vec3(0.0f, 1.0f, 1.0f);
static glm::vec3 TEAL = glm::vec3(0.0f, 1.0f, 1.0f);
variable WHITE
cpp
static glm::vec3 WHITE = glm::vec3(1.0f, 1.0f, 1.0f);
static glm::vec3 WHITE = glm::vec3(1.0f, 1.0f, 1.0f);
variable YELLOW
cpp
static glm::vec3 YELLOW = glm::vec3(1.0f, 1.0f, 0.0f);
static glm::vec3 YELLOW = glm::vec3(1.0f, 1.0f, 0.0f);
Updated on 2025-01-07 at 13:40:43 +0000