Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (27 sloc) 478 Bytes
import processing.opengl.*;
class BlinkeyLight {
float rad = .5;
float x = 0;
float y = 0;
float z = 0;
color c = color(1,1,1);
BlinkeyLight(float x_, float y_, float z_) {
x = x_;
y = y_;
z = z_;
}
void setColor(color c_) {
c = c_;
}
void draw() {
pushMatrix();
translate(x, y, z);
stroke(c);
fill(c);
//scale(rad);
//ellipse(0,0,1.5,1.5);
scale(2);
point(0,0);
popMatrix();
}
}