+
+ if (sweep.isRunning()) {
+ for (Point p : model.points) {
+ colors[p.index] = blendColor(colors[p.index], color(
+ (lx.getBaseHuef() + .2*abs(p.x - model.cx) + .2*abs(p.y - model.cy)) % 360,
+ 100 - 100.*sweep.getValuef(),
+ 100 - 15.*abs(p.y - sweep.getValuef()*model.yMax)
+ ), ADD);
+ }
+ }
+