From 7f782b991846bac5c4be6f4a8db012d4dd271e86 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Wed, 9 Oct 2013 19:06:11 -0700 Subject: [PATCH] Always send the composited colors, A/B on crossfader is just for preview --- _Internals.pde | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/_Internals.pde b/_Internals.pde index 5738ed2..d24f13b 100644 --- a/_Internals.pde +++ b/_Internals.pde @@ -262,23 +262,23 @@ void draw() { // Send output colors color[] sendColors = glucose.getColors(); if (debugMode) { - debugUI.maskColors(colors); + debugUI.maskColors(sendColors); } // Gamma correction here. Apply a cubic to the brightness // for better representation of dynamic range - for (int i = 0; i < colors.length; ++i) { - float b = brightness(colors[i]) / 100.f; - colors[i] = color( - hue(colors[i]), - saturation(colors[i]), + for (int i = 0; i < sendColors.length; ++i) { + float b = brightness(sendColors[i]) / 100.f; + sendColors[i] = color( + hue(sendColors[i]), + saturation(sendColors[i]), (b*b*b) * 100. ); } // TODO(mcslee): move into GLucose engine for (PandaDriver p : pandaBoards) { - p.send(colors); + p.send(sendColors); } } -- 2.34.1