repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change code to use new thread-safe lx color functions
[SugarCubes.git]
/
BenMorrow.pde
diff --git
a/BenMorrow.pde
b/BenMorrow.pde
index 1eb8ae195e7244601ed00bc7c015551591c41d19..afd68072a47988a1aff6f7a2cdb3f5996b142b97 100644
(file)
--- a/
BenMorrow.pde
+++ b/
BenMorrow.pde
@@
-64,7
+64,7
@@
class TowerParams extends SCPattern
{
if(p.y<towerParams.get(i).getValuef()*200)
{
{
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
+108,7
@@
class Sandbox extends SCPattern
{
doDraw(c,0);
c = (c + 1) % towerrange;
{
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++;
doDraw(c,col);
}
counter++;