+abstract class TestPattern extends SCPattern {
+ public TestPattern(GLucose glucose) {
+ super(glucose);
+ setEligible(false);
+ }
+}
+
+class TestStripPattern extends TestPattern {
+
+ SinLFO d = new SinLFO(4, 40, 4000);
+
+ public TestStripPattern(GLucose glucose) {
+ super(glucose);
+ addModulator(d).trigger();
+ }
+
+ public void run(int deltaMs) {
+ for (Strip s : model.strips) {
+ for (Point p : s.points) {
+ colors[p.index] = color(
+ lx.getBaseHuef(),
+ 100,
+ max(0, 100 - d.getValuef()*dist(p.x, p.y, s.cx, s.cy))
+ );
+ }
+ }
+ }
+}
+