FastLED 3.9.15
Loading...
Searching...
No Matches

◆ renderPixel()

CRGB NoiseVariantManager::renderPixel ( const RingCoord & coord,
uint32_t time_ms )
inline

Definition at line 455 of file FxNoiseRing.h.

455 {
456 if (transition_progress >= 1.0f) {
457 // No transition, render current variant
458 return renderVariant(current_variant, coord, time_ms);
459 } else {
460 // Advanced cross-fade with brightness preservation
461 CRGB old_color = renderVariant(current_variant, coord, time_ms);
462 CRGB new_color = renderVariant(target_variant, coord, time_ms);
463 return smoothLerpCRGB(old_color, new_color, transition_progress);
464 }
465 }
CRGB smoothLerpCRGB(const CRGB &a, const CRGB &b, float t)
CRGB renderVariant(uint8_t variant, const RingCoord &coord, uint32_t time_ms)

References current_variant, renderVariant(), smoothLerpCRGB(), target_variant, and transition_progress.

+ Here is the call graph for this function: