Apat and added acos to spherycolor, not included in color yet but working
[SugarCubes.git] / SamMorrow.pde
old mode 100755 (executable)
new mode 100644 (file)
index 520ff29..350615d
@@ -11,14 +11,14 @@ class JazzRainbow extends SamPattern {
   }
 
   
-  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);
         }
       }
     }