| 210 | } |
| 211 | |
| 212 | void fadeUsingColor( CRGB* leds, uint16_t numLeds, const CRGB& colormask) |
| 213 | { |
| 214 | uint8_t fr, fg, fb; |
| 215 | fr = colormask.r; |
| 216 | fg = colormask.g; |
| 217 | fb = colormask.b; |
| 218 | |
| 219 | for( uint16_t i = 0; i < numLeds; ++i) { |
| 220 | leds[i].r = scale8_LEAVING_R1_DIRTY( leds[i].r, fr); |
| 221 | leds[i].g = scale8_LEAVING_R1_DIRTY( leds[i].g, fg); |
| 222 | leds[i].b = scale8 ( leds[i].b, fb); |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | |
| 227 | CRGB& nblend( CRGB& existing, const CRGB& overlay, fract8 amountOfOverlay ) |
nothing calls this directly
no test coverage detected