repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always send the composited colors, A/B on crossfader is just for preview
[SugarCubes.git]
/
_Internals.pde
diff --git
a/_Internals.pde
b/_Internals.pde
index 5738ed21078afa6f64ef7ed42c3bb1c7897bdad3..d24f13b3910c364055c769102ad0f5ddfef9aa86 100644
(file)
--- a/
_Internals.pde
+++ b/
_Internals.pde
@@
-262,23
+262,23
@@
void draw() {
// Send output colors
color[] sendColors = glucose.getColors();
if (debugMode) {
// Send output colors
color[] sendColors = glucose.getColors();
if (debugMode) {
- debugUI.maskColors(
c
olors);
+ debugUI.maskColors(
sendC
olors);
}
// Gamma correction here. Apply a cubic to the brightness
// for better representation of dynamic range
}
// Gamma correction here. Apply a cubic to the brightness
// for better representation of dynamic range
- for (int i = 0; i <
c
olors.length; ++i) {
- float b = brightness(
c
olors[i]) / 100.f;
-
c
olors[i] = color(
- hue(
c
olors[i]),
- saturation(
c
olors[i]),
+ for (int i = 0; i <
sendC
olors.length; ++i) {
+ float b = brightness(
sendC
olors[i]) / 100.f;
+
sendC
olors[i] = color(
+ hue(
sendC
olors[i]),
+ saturation(
sendC
olors[i]),
(b*b*b) * 100.
);
}
// TODO(mcslee): move into GLucose engine
for (PandaDriver p : pandaBoards) {
(b*b*b) * 100.
);
}
// TODO(mcslee): move into GLucose engine
for (PandaDriver p : pandaBoards) {
- p.send(
c
olors);
+ p.send(
sendC
olors);
}
}
}
}