Definition at line 408 of file Painter.cpp.
411 {
412
414 int total_counted = 0;
415
416 float r, g, b;
417 r = g = b = 0;
418
420 const Key& key = keyboard.
keys_[i];
421
422
428 ++total_counted;
429 }
430 }
431
432 float denom = total_counted ? total_counted : 1;
433 r /= denom;
434 g /= denom;
435 b /= denom;
436
437
438 const Color3i rgb(r, g, b);
439
440 for (int i = 0; i < led_column_table_length; ++i) {
441 const int n = led_column_table[i];
442 for (int i = 0; i < n; ++i) {
444 }
445 }
447}
static const int kNumKeys
virtual void RawDrawPixel(const Color3i &c)=0
virtual void RawCommitDraw()=0
virtual void RawBeginDraw()=0
References Color3i::b_, Key::curr_color_, Color3i::g_, KeyboardState::keys_, KeyboardState::kNumKeys, Color3i::r_, LedRopeInterface::RawBeginDraw(), LedRopeInterface::RawCommitDraw(), LedRopeInterface::RawDrawPixel(), ColorHSV::ToRGB(), and ColorHSV::v_.
Referenced by Paint().