Definition at line 658 of file curr.h.
658 {
659
660 float perc = 0.15f;
663
664 int min_x = perc *
width;
665 int max_x = (1 - perc) * width;
666 int min_y = perc *
height;
667 int max_y = (1 - perc) * height;
668
671
672
673 float ripple_strength = 1.5f;
674 waveFx->setf(
x,
y, ripple_strength);
675 waveFx->setf(
x + 1,
y, ripple_strength);
676 waveFx->setf(
x,
y + 1, ripple_strength);
677 waveFx->setf(
x + 1,
y + 1, ripple_strength);
678
679 FL_WARN(
"Wave ripple triggered at (" <<
x <<
", " <<
y <<
") with 2x2 pattern");
680}
fl::Corkscrew corkscrew(CORKSCREW_TURNS, NUM_LEDS)
LIB8STATIC fl::u8 random8() FL_NOEXCEPT
Generate an 8-bit random number.
References corkscrew(), FL_WARN, random8(), waveFx, x, and y.
Referenced by drawWave(), and processWaveAutoTrigger().