X-Git-Url: https://git.piment-noir.org/?p=SugarCubes.git;a=blobdiff_plain;f=SamMorrow.pde;h=00ed073c46506c1f3012938381efc3f89892c676;hp=520ff29fa52eeb222c1420f6fd4175386af678a9;hb=dde759833df1c0190d9d3a982a90c0a4f8d76a26;hpb=6cf717781a91de795455ea3629bcbede5994e0b5 diff --git a/SamMorrow.pde b/SamMorrow.pde index 520ff29..00ed073 100644 --- a/SamMorrow.pde +++ b/SamMorrow.pde @@ -1,24 +1,24 @@ 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); } - public void run(int deltaMs) { + public void run(double deltaMs) { // Access the core master hue via this method call float hv = lx.getBaseHuef(); for (int i = 0; i < colors.length*5; i=i+27) { 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); } } }