repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New pulley animation
[SugarCubes.git]
/
_Internals.pde
diff --git
a/_Internals.pde
b/_Internals.pde
index 4dd145a80d62964c190e6ff1bea08d84261c53a6..d24f13b3910c364055c769102ad0f5ddfef9aa86 100644
(file)
--- a/
_Internals.pde
+++ b/
_Internals.pde
@@
-39,6
+39,9
@@
final float TRAILER_WIDTH = 240;
final float TRAILER_DEPTH = 97;
final float TRAILER_HEIGHT = 33;
final float TRAILER_DEPTH = 97;
final float TRAILER_HEIGHT = 33;
+final int MaxCubeHeight = 7;
+final int NumBackTowers = 9;
+
int targetFramerate = 60;
int startMillis, lastMillis;
int targetFramerate = 60;
int startMillis, lastMillis;
@@
-259,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);
}
}
}
}