Permalink
Browse files

buffer

  • Loading branch information...
1 parent b2f0568 commit f9837de0e5d410f758d3033b4bf96e7dd0130f3f Justin Day committed May 23, 2016
Showing with 4 additions and 4 deletions.
  1. +1 −1 BlinkeyDomeSimulator.pde
  2. +3 −3 BlinkeyLights.pde
View
2 BlinkeyDomeSimulator.pde
@@ -6,7 +6,7 @@ import hypermedia.net.*;
import java.util.concurrent.*;
-int DOME_RADIUS = 8;
+int DOME_RADIUS = 12;
int strips = 40; // Number of strips around the circumference of the sphere
int lights_per_strip = 32*5; // Number of lights along the strip
int packet_length = strips*lights_per_strip*3 + 1;
View
6 BlinkeyLights.pde
@@ -10,7 +10,8 @@ class BlinkeyLights {
for (int light = lights_per_strip_ -1; light > 0; light--) {
for (int strip = 0; strip < strips_; strip++) {
- float inclination = HALF_PI + (HALF_PI)*((float)light/lights_per_strip_);
+ //float inclination = HALF_PI + (HALF_PI)*((float)light/lights_per_strip_);
+ float inclination = HALF_PI + (HALF_PI*0.9)*((float)light/lights_per_strip_);
float azimuth = (2*PI)*((float)strip/strips_);
float x = radius_ * cos(azimuth) * sin(inclination);
@@ -37,5 +38,4 @@ class BlinkeyLights {
(blinkeyLights.get(i)).draw();
}
}
-}
-
+}

0 comments on commit f9837de

Please sign in to comment.