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

Class P

examples/Luminova/Luminova.h:46–53  ·  view source on GitHub ↗

===== particle sim (Processing port) =====

Source from the content-addressed store, hash-verified

44
45// ===== particle sim (Processing port) =====
46struct P {
47 float x, y; // position
48 float a; // angle
49 int f; // direction (+1 or -1)
50 int g; // group (I in the original)
51 float s; // "stroke weight" / intensity
52 bool alive; // quick guard in case we want to reuse slots
53};
54
55static uint32_t t = 0; // frame-ish counter
56static const int MAXP = 256; // fewer particles for small grids

Callers 1

PaintVuMidNotesFadeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected