21 #ifndef HX3D_GRAPHICS_COLOR 22 #define HX3D_GRAPHICS_COLOR 24 #include <glm/vec4.hpp> 47 Color(
unsigned char r,
unsigned char g,
unsigned char b);
57 Color(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a);
glm::vec4 toFloat()
Convert the color to a float format (between 0 and 1).
unsigned char a
Alpha component.
unsigned char g
Green component.
static Color hsvToRgb(Color hsv)
Convert HSV color to RGB format.
Four [0..255] components defined color.
static Color Red
Red color.
static Color White
White color.
Color()
Create a white color.
static Color Blue
Blue color.
Color & operator=(const Color &color)
Affect a color into another.
static Color rgbToHsv(Color rgb)
Convert RGB color to HSV format.
static Color Green
Green color.
static Color Black
Black color.
unsigned char b
Blue component.
unsigned char r
Red component.