repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New GLucose/HeronLX, LXPoint and LXModel now core classes
[SugarCubes.git]
/
_Internals.pde
diff --git
a/_Internals.pde
b/_Internals.pde
index 728e34387ae8250151ab71cbae29e72f259ab950..8c50a7681aa6fc4c292d56a3563b883ec57a7e18 100644
(file)
--- a/
_Internals.pde
+++ b/
_Internals.pde
@@
-140,7
+140,7
@@
void setup() {
lx = glucose.lx;
lx.enableKeyboardTempo();
logTime("Built GLucose engine");
lx = glucose.lx;
lx.enableKeyboardTempo();
logTime("Built GLucose engine");
-
+
// Set the patterns
LXEngine engine = lx.engine;
engine.setPatterns(patterns = _leftPatterns(glucose));
// Set the patterns
LXEngine engine = lx.engine;
engine.setPatterns(patterns = _leftPatterns(glucose));
@@
-328,7
+328,7
@@
void drawDiagnostics(long drawNanos, long simulationNanos, long uiNanos, long ga
}
void drawSimulation(color[] simulationColors) {
}
void drawSimulation(color[] simulationColors) {
-
camera(
+ camera(
eyeX, eyeY, eyeZ,
midX, midY, midZ,
0, -1, 0
eyeX, eyeY, eyeZ,
midX, midY, midZ,
0, -1, 0
@@
-370,7
+370,7
@@
void drawSimulation(color[] simulationColors) {
noFill();
strokeWeight(2);
beginShape(POINTS);
noFill();
strokeWeight(2);
beginShape(POINTS);
- for (Point p : glucose.model.points) {
+ for (
LX
Point p : glucose.model.points) {
stroke(simulationColors[p.index]);
vertex(p.x, p.y, p.z);
}
stroke(simulationColors[p.index]);
vertex(p.x, p.y, p.z);
}