repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change colors on Breathe
[SugarCubes.git]
/
JackStahl.pde
diff --git
a/JackStahl.pde
b/JackStahl.pde
index 577d20f668d2545e1a6bd22b08cfe385c8ff3cc5..9cd6bf145dacb473d2b04d8ec84b517ca807eee5 100644
(file)
--- a/
JackStahl.pde
+++ b/
JackStahl.pde
@@
-152,7
+152,7
@@
class Breathe extends SCPattern {
float v1 = sin_x > y_in_range ? (100 + 100*(y_in_range - sin_x)) : 0;
float hue_color = (lx.getBaseHuef() + hueScale.getValuef() * (abs(p.x-model.xMax/2.)*.6 + abs(p.y-model.yMax/2)*.9 + abs(p.z - model.zMax/2.))) % 360;
float v1 = sin_x > y_in_range ? (100 + 100*(y_in_range - sin_x)) : 0;
float hue_color = (lx.getBaseHuef() + hueScale.getValuef() * (abs(p.x-model.xMax/2.)*.6 + abs(p.y-model.yMax/2)*.9 + abs(p.z - model.zMax/2.))) % 360;
- color c = color(hue_color,
4
0, v1);
+ color c = color(hue_color,
6
0, v1);
// Now draw the spheres
for (Sphere s : spheres) {
// Now draw the spheres
for (Sphere s : spheres) {
@@
-175,7
+175,7
@@
class Breathe extends SCPattern {
float value = min(beat_value, distance_value);
float value = min(beat_value, distance_value);
- c = blendColor(c, color((hue_color +
9
0) % 360, 100, min(1, value) * 100), ADD);
+ c = blendColor(c, color((hue_color +
18
0) % 360, 100, min(1, value) * 100), ADD);
}
colors[p.index] = c;
}
}
colors[p.index] = c;
}