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

◆ start()

void Ripple::start ( byte n,
byte d,
unsigned long c,
float s,
unsigned long l,
byte b )
inline

Definition at line 52 of file ripple.h.

52 {
53 color = c;
54 speed = s;
55 lifespan = l;
56 behavior = b;
57
58 birthday = millis();
59 pressure = 0;
61
62 position[0] = n;
63 position[1] = d;
64
65 justStarted = true;
66
67 Serial.print("Ripple ");
68 Serial.print(rippleId);
69 Serial.print(" starting at node ");
70 Serial.print(position[0]);
71 Serial.print(" direction ");
72 Serial.println(position[1]);
73 }
int position[2]
Definition ripple.h:49
unsigned long birthday
Definition ripple.h:387
bool justStarted
Definition ripple.h:384
rippleState state
Definition ripple.h:42
unsigned long color
Definition ripple.h:43
float speed
Definition ripple.h:374
byte rippleId
Definition ripple.h:390
float pressure
Definition ripple.h:386
unsigned long lifespan
Definition ripple.h:375
byte behavior
Definition ripple.h:382
@ withinNode
Definition ripple.h:18

References behavior, birthday, color, justStarted, lifespan, position, pressure, rippleId, speed, state, and withinNode.