Definition at line 409 of file Painter.cpp.
412 {
413
415 int total_counted = 0;
416
417 float r, g, b;
418 r = g = b = 0;
419
422
423
429 ++total_counted;
430 }
431 }
432
433 float denom = total_counted ? total_counted : 1;
434 r /= denom;
435 g /= denom;
436 b /= denom;
437
438
439 const Color3i rgb(r, g, b);
440
441 for (int i = 0; i < led_column_table_length; ++i) {
442 const int n = led_column_table[i];
443 for (int i = 0; i < n; ++i) {
445 }
446 }
448}
LedRopeTCL led_rope(kNumKeys)
static const int kNumKeys
void RawDrawPixel(const Color3i &c)
References Color3i::b_, Color3i::g_, keyboard, KeyboardState::kNumKeys, led_rope, Key::mCurrColor, Color3i::r_, ColorHSV::ToRGB(), and ColorHSV::v_.
Referenced by Paint().