float fVal = falloff.getValuef();
int s = 0;
- for (Strip strip : model.allBoxStrips) {
+ for (Strip strip : model.strips) {
int i = 0;
for (Point p : strip.points) {
colors[p.index] = color(
void run(int deltaMs) {
float s = 0;
- for (Strip strip : model.allBoxStrips) {
+ for (Strip strip : model.strips ) {
int i = 0;
for (Point p : strip.points) {
float fV = max(-1, 1 - dist(p.fx/2., p.fy, fX.getValuef()/2., fY.getValuef()) / 64.);
colors[p.index] = color(
(hv + p.fz + p.fy*hs.getValuef()) % 360,
min(100, abs(p.fx - s.getValuef())/2.),
- max(0, 100 - mv/2. - mv * abs(i - 7.5))
+ max(0, 100 - mv/2. - mv * abs(i - (strip.metrics.length-1)/2.))
);
++i;
}