FastLED 3.10.10
Loading...
Searching...
No Matches

◆ wrap()

static Fix wrap ( fl::i32 a)
static
Examples
Polygon.ino.

Definition at line 101 of file Polygon.ino.

101 {
102 a %= kTwoPi;
103 if (a < 0) a += kTwoPi;
104 return Fix::from_raw(a);
105}
static const fl::i32 kTwoPi
Definition Polygon.ino:85
static constexpr FASTLED_FORCE_INLINE s16x16 from_raw(i32 raw) FL_NO_EXCEPT
Definition s16x16.h:56

References fl::s16x16::from_raw(), and kTwoPi.

Referenced by fl::Tile2x2_u8_wrap::Tile2x2_u8_wrap(), polar(), and sceneKnot().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: