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

◆ screenMap

fl::ScreenMap screenMap
Initial value:
=
fl::ScreenMap(NUM_LEDS, 0.15f, [](int index, fl::vec2f &pt_out) {
float t = float(index) / float(NUM_LEDS - 1);
pt_out.x = 15.0f + t * 80.0f;
float straight_y = 5.0f + t * 90.0f;
float sag = 15.0f * fl::sin(t * FL_M_PI);
pt_out.y = straight_y - sag;
})
#define NUM_LEDS
static uint32_t t
Definition Luminova.h:55
#define FL_M_PI
Definition math.h:34
vec2< float > vec2f
Definition geometry.h:333
enable_if< is_fixed_point< T >::value, T >::type sin(T angle) FL_NOEXCEPT
value_type y
Definition geometry.h:191
value_type x
Definition geometry.h:190

Definition at line 71 of file Sailboat.ino.