Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
threedimensional
PShape starcubes;
float delta = 0.0;
void setup() {
size(640, 360, P3D);
starcubes = loadShape("scificubes.obj");
}
void draw() {
background(102);
lights();
delta += 0.01;
translate(width/2,height/2);
rotateY(delta);
scale(50);
shape(starcubes);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment