Definition at line 23 of file color.cpp.
23 {
24 const int s =
static_cast<int>(
scale * 255.0f);
25
26 int r =
static_cast<int>(
r_) * s / 255;
27 int g =
static_cast<int>(
g_) * s / 255;
28 int b =
static_cast<int>(
b_) * s / 255;
29
31}
void Set(uint8_t r, uint8_t g, uint8_t b)
References b_, g_, r_, scale, and Set().