Definition at line 401 of file Painter.cpp.
404 {
405
407 int total_counted = 0;
408
409 float r, g, b;
410 r = g = b = 0;
411
413 const Key& key = keyboard.
keys_[i];
414
415
421 ++total_counted;
422 }
423 }
424
425 float denom = total_counted ? total_counted : 1;
426 r /= denom;
427 g /= denom;
428 b /= denom;
429
430
431 const Color3i rgb(r, g, b);
432
433 for (int i = 0; i < led_column_table_length; ++i) {
434 const int n = led_column_table[i];
435 for (int i = 0; i < n; ++i) {
437 }
438 }
440}
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().