- Examples
- Polygon.ino.
Definition at line 186 of file Polygon.ino.
186 {
187 const fl::i32 ph1 =
angleAt(
t, 11000);
188 const fl::i32 ph2 =
angleAt(
t, 8700);
191 for (int pass = 0; pass < 2; ++pass) {
193 for (
int i = 0; i <
kKnotN; ++i) {
199 }
202 CHSV((
fl::u8)(160 + 90 * pass), 190, 255), knot,
204 }
205}
static fl::i32 angleAt(unsigned long t, unsigned long periodMs)
fl::PolyPoint< Fix > FixPt
static const fl::i32 kTwoPi
static fl::i32 mulQ16(fl::i32 a, fl::i32 b)
fl::CanvasRGB canvas(fl::span< CRGB >(leds, NUM_LEDS), WIDTH, HEIGHT)
static Fix wrap(fl::i32 a)
#define FL_GFX_POLYGON_DEFAULT_CHUNK
constexpr i32 raw() const FL_NO_EXCEPT
FASTLED_FORCE_INLINE s16x16 sin() const FL_NO_EXCEPT
static constexpr FASTLED_FORCE_INLINE s16x16 from_raw(i32 raw) FL_NO_EXCEPT
References fl::gfx::ABuffer, angleAt(), canvas, fl::DRAW_MODE_BLEND, FL_GFX_POLYGON_DEFAULT_CHUNK, fl::s16x16::from_raw(), kCX, kCY, kKnotN, kPi, kTwoPi, mulQ16(), fl::s16x16::raw(), fl::s16x16::sin(), t, wrap(), fl::gfx::PolyPoint< Coord >::x, and fl::gfx::PolyPoint< Coord >::y.