sinesphere working with notes
[SugarCubes.git] / BenMorrow.pde
index 1eb8ae195e7244601ed00bc7c015551591c41d19..7024148aab6a5d681bd5cd37ad371e3b8814fbef 100644 (file)
@@ -50,7 +50,6 @@ class TowerParams extends SCPattern
                }
                towerSize = model.towers.size();
                colorSpan = 255 / towerSize;
-               println("towers "+towerSize);
        }
 
        void run(double deltaMs)
@@ -64,7 +63,7 @@ class TowerParams extends SCPattern
                        {
                                if(p.y<towerParams.get(i).getValuef()*200)
                                {
-                                       colors[p.index]=color(255 * hueoff.getValuef()+colorSpan * hueSpan.getValuef() * i, 255, 255);
+                                       colors[p.index]=lx.hsb(255 * hueoff.getValuef()+colorSpan * hueSpan.getValuef() * i, 255, 255);
                                }
                        }
                }
@@ -108,7 +107,7 @@ class Sandbox extends SCPattern
                {
                        doDraw(c,0);
                        c = (c + 1) % towerrange;
-                       long col = color(Math.round(Math.random()*255),255,255) ;
+                       long col = lx.hsb(Math.round(Math.random()*255),255,255) ;
                        doDraw(c,col);
                }
                counter++;