29 assert(
a >= 0.0f &&
a <= 1.0f);
const Color RED(255, 0, 0)
Pure red.
const Color WHITE(255, 255, 255)
White.
const Color BLUE(0, 0, 255)
Pure blue.
const Color GREEN(0, 255, 0)
Pure green.
const Color DARK_GRAY(99, 99, 99)
Dark gray.
const Color GRAY(128, 128, 128)
Medium gray.
const Color BLACK(0, 0, 0)
Black.
Definition audiomanager.cpp:4
RGBA color stored as normalized floating-point components.
Definition color.hpp:12
Color(float r, float g, float b, float a)
Constructs a color from 0-255 RGB values and an alpha.
Definition color.hpp:28
Color()
Constructs an opaque white color.
Definition color.hpp:19
float r
Red channel, normalized to [0, 1].
Definition color.hpp:13
float a
Alpha channel in [0, 1].
Definition color.hpp:16
Color(float r, float g, float b)
Constructs a fully opaque color from 0-255 RGB values.
Definition color.hpp:42
float b
Blue channel, normalized to [0, 1].
Definition color.hpp:15
float g
Green channel, normalized to [0, 1].
Definition color.hpp:14