}
towerSize = model.towers.size();
colorSpan = 255 / towerSize;
- println("towers "+towerSize);
}
- void run(int deltaMs)
+ void run(double deltaMs)
{
clearALL();
Tower t;
{
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);
}
}
}
println("towers "+towerrange);
}
- public void run(int deltaMs) {
+ public void run(double deltaMs) {
if(counter % 10 ==0)
{
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++;
getGraphicByName("myOtherColors").position=100;
}
int counter=0;
- public void run(int deltaMs)
+ public void run(double deltaMs)
{
clearALL();
super.run(deltaMs);
}
int counter=0;
float count=0;
- public void run(int deltaMs)
+ public void run(double deltaMs)
{
clearALL();
super.run(deltaMs);