X-Git-Url: https://git.piment-noir.org/?p=SugarCubes.git;a=blobdiff_plain;f=SamMorrow.pde;h=00ed073c46506c1f3012938381efc3f89892c676;hp=0b70698fcfb285eb36c6b2237736f1f5d05d55c7;hb=7d60f6f6ea82fd5c9794524ce11d40e7d6c00bf7;hpb=34327c962351112e07c3d93f56ffc543fac45b58 diff --git a/SamMorrow.pde b/SamMorrow.pde index 0b70698..00ed073 100644 --- a/SamMorrow.pde +++ b/SamMorrow.pde @@ -1,13 +1,13 @@ abstract class SamPattern extends SCPattern { - public SamPattern(GLucose glucose) { - super(glucose); + public SamPattern(LX lx) { + super(lx); setEligible(false); } } class JazzRainbow extends SamPattern { - public JazzRainbow(GLucose glucose) { - super(glucose); + public JazzRainbow(LX lx) { + super(lx); } @@ -18,7 +18,7 @@ class JazzRainbow extends SamPattern { float a = hv%250; if (i%2 == 0) { for (int b = 0; b < 70; b++) { - colors[(i+b)%colors.length] = color(a+i%250, 100, b*a%100); + colors[(i+b)%colors.length] = lx.hsb(a+i%250, 100, b*a%100); } } }