From: Jack Stahl Date: Tue, 20 Aug 2013 10:36:15 +0000 (-0700) Subject: Change colors on Breathe X-Git-Url: https://git.piment-noir.org/?p=SugarCubes.git;a=commitdiff_plain;h=b6a79a671fa97d90d89d32f586fc9ee9766a15d2 Change colors on Breathe --- diff --git a/JackStahl.pde b/JackStahl.pde index 577d20f..9cd6bf1 100644 --- 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; - color c = color(hue_color, 40, v1); + color c = color(hue_color, 60, v1); // Now draw the spheres for (Sphere s : spheres) { @@ -175,7 +175,7 @@ class Breathe extends SCPattern { float value = min(beat_value, distance_value); - c = blendColor(c, color((hue_color + 90) % 360, 100, min(1, value) * 100), ADD); + c = blendColor(c, color((hue_color + 180) % 360, 100, min(1, value) * 100), ADD); } colors[p.index] = c; }