Skip to content
Newer
Older
100644 31 lines (26 sloc) 463 Bytes
ebdbb21 @cibomahto Add blinky lights, disable sphere.
cibomahto authored Mar 18, 2012
1 import processing.opengl.*;
2
3 class BlinkeyLight {
4 float rad = .5;
5 float x = 0;
6 float y = 0;
7 float z = 0;
8 color c = color(1,1,1);
9
10 BlinkeyLight(float x_, float y_, float z_) {
11 x = x_;
12 y = y_;
13 z = z_;
14 }
15
16 void setColor(color c_) {
17 c = c_;
18 }
19
20 void draw() {
21 pushMatrix();
1083e78 @cibomahto put blinkeylights array, dome into their own classes.
cibomahto authored Mar 18, 2012
22 translate(x, y, z);
23 stroke(c);
24 fill(c);
7119537 @mhenstell changed ellipses to points for speed
mhenstell authored Mar 20, 2012
25 //scale(rad);
26 //ellipse(0,0,1.5,1.5);
27 point(0,0);
e0ca1ea @mhenstell box to ellipse
mhenstell authored Mar 18, 2012
28 popMatrix();
ebdbb21 @cibomahto Add blinky lights, disable sphere.
cibomahto authored Mar 18, 2012
29 }
30 }
Something went wrong with that request. Please try again.