MCPcopy Create free account
hub / github.com/FastLED/FastLED / Gap

Class Gap

src/fl/gfx/corkscrew.h:64–77  ·  view source on GitHub ↗

* Struct representing gap parameters for corkscrew mapping */

Source from the content-addressed store, hash-verified

62 * Struct representing gap parameters for corkscrew mapping
63 */
64struct Gap {
65 int num_leds = 0; // Number of LEDs after which gap is activated, 0 = no gap
66 float gap = 0.0f; // Gap value from 0 to 1, represents percentage of width unit to add
67
68 Gap() FL_NOEXCEPT = default;
69 Gap(float g) : num_leds(0), gap(g) {} // Backwards compatibility constructor
70 Gap(int n, float g) : num_leds(n), gap(g) {} // New constructor with num_leds
71
72 // Rule of 5 for POD data
73 Gap(const Gap &other) FL_NOEXCEPT = default;
74 Gap &operator=(const Gap &other) = default;
75 Gap(Gap &&other) FL_NOEXCEPT = default;
76 Gap &operator=(Gap &&other) FL_NOEXCEPT = default;
77};
78
79// Maps a Corkscrew defined by the input to a cylindrical mapping for rendering
80// a densly wrapped LED corkscrew.

Callers 2

CorkscrewClass · 0.85
FL_TEST_FILEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected