| 170 | FlowFieldFPState() FL_NOEXCEPT {} |
| 171 | |
| 172 | void init(int w, int h) { |
| 173 | width = w; |
| 174 | height = h; |
| 175 | count = (w * h + 3) & ~3; // Pad to multiple of 4 |
| 176 | |
| 177 | r.resize(count, 0); |
| 178 | g.resize(count, 0); |
| 179 | b.resize(count, 0); |
| 180 | tr.resize(count, 0); |
| 181 | tg.resize(count, 0); |
| 182 | tb.resize(count, 0); |
| 183 | x_prof.resize(w, 0); |
| 184 | y_prof.resize(h, 0); |
| 185 | } |
| 186 | }; |
| 187 | |
| 188 | FASTLED_SHARED_PTR(FlowField); |