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